Commit 38f6449b authored by Jiri Engelthaler's avatar Jiri Engelthaler Committed by Greg Kroah-Hartman

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 avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f561b30f
......@@ -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