Skip to content

Commit

Permalink
mtd: slram: invalid checking of absolute end address
Browse files Browse the repository at this point in the history
Fixed parsing end absolute address.

Signed-off-by: Jiri Engelthaler <engycz@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Jiri Engelthaler authored and Artem Bityutskiy committed Nov 9, 2012
1 parent 3d70f8c commit c36a7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/slram.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static int parse_cmdline(char *devname, char *szstart, char *szlength)

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;

Expand Down

0 comments on commit c36a7ff

Please sign in to comment.