diff options
author | Jiri Engelthaler <engycz@gmail.com> | 2012-09-20 16:49:50 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-09 16:02:50 +0100 |
commit | c36a7ff4578ab6294885aef5ef241aeec4cdb1f0 (patch) | |
tree | fbaa143a95104c2f0bb696ff861e3400c27f7e28 /drivers/mtd/devices/slram.c | |
parent | Linux 3.7-rc4 (diff) | |
download | linux-c36a7ff4578ab6294885aef5ef241aeec4cdb1f0.tar.xz linux-c36a7ff4578ab6294885aef5ef241aeec4cdb1f0.zip |
mtd: slram: invalid checking of absolute end address
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>
Diffstat (limited to 'drivers/mtd/devices/slram.c')
-rw-r--r-- | drivers/mtd/devices/slram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c index 8f52fc858e48..5a5cd2ace4a6 100644 --- a/drivers/mtd/devices/slram.c +++ b/drivers/mtd/devices/slram.c @@ -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; |