Commit c714d5eb authored by Jiri Engelthaler's avatar Jiri Engelthaler Committed by Ben Hutchings

mtd: slram: invalid checking of absolute end address

commit c36a7ff4 upstream.

Fixed parsing end absolute address.
Signed-off-by: default avatarJiri Engelthaler <engycz@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 016ede1a
......@@ -266,7 +266,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment