mtd: slram: invalid checking of absolute end address
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 21 06:59:01 EST 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c36a7ff4578ab6294885aef5ef241aeec4cdb1f0
Commit: c36a7ff4578ab6294885aef5ef241aeec4cdb1f0
Parent: 3d70f8c617a436c7146ecb81df2265b4626dfe89
Author: Jiri Engelthaler <engycz at gmail.com>
AuthorDate: Thu Sep 20 16:49:50 2012 +0200
Committer: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
CommitDate: Fri Nov 9 17:02:50 2012 +0200
mtd: slram: invalid checking of absolute end address
Fixed parsing end absolute address.
Signed-off-by: Jiri Engelthaler <engycz at gmail.com>
Cc: stable at vger.kernel.org
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
---
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 8f52fc8..5a5cd2a 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;
More information about the linux-mtd-cvs
mailing list