Commit c36a7ff4 authored by Jiri Engelthaler's avatar Jiri Engelthaler Committed by Artem Bityutskiy

mtd: slram: invalid checking of absolute end address

Fixed parsing end absolute address.
Signed-off-by: default avatarJiri Engelthaler <engycz@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 3d70f8c6
......@@ -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;
......
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