[PATCH] [MTD] slram: Invalid checking of absolute end address

Artem Bityutskiy dedekind1 at gmail.com
Thu Oct 4 11:43:09 EDT 2012


On Thu, 2012-09-20 at 16:49 +0200, Jiri Engelthaler wrote:
> Fixed parsing end absolute address
> Signed-off-by: Jiri Engelthaler <engycz at gmail.com>
> ---
> --- linux-3.2.28/drivers/mtd/devices/slram.c	2012-08-19 19:15:38.000000000 +0200
> +++ linux-3.2.28.mod/drivers/mtd/devices/slram.c	2012-09-19
> 18:29:28.012740703 +0200
> @@ -266,7 +266,7 @@ static int parse_cmdline(char *devname,
> 
>  	if (*(szlength) != '+') {
>  		devlength = simple_strtoul(szlength, &buffer, 0);
> -		devlength = handle_unit(devlength, buffer) - devstart;
> +		devlength = handle_unit(devlength, buffer);
>  		if (devlength < devstart)
>  			goto err_out;

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121004/799cd904/attachment.sig>


More information about the linux-mtd mailing list