Patchwork [3.5.y.z,extended,stable] Patch "mtd: slram: invalid checking of absolute end address" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Dec. 10, 2012, 2:17 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/204886/
State New
Headers show


Herton Ronaldo Krzesinski - Dec. 10, 2012, 2:17 p.m.
This is a note to let you know that I have just added a patch titled

    mtd: slram: invalid checking of absolute end address

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 0d142c24e155f10d3a353a6dd2847ce07ecfa09d Mon Sep 17 00:00:00 2001
From: Jiri Engelthaler <>
Date: Thu, 20 Sep 2012 16:49:50 +0200
Subject: [PATCH] mtd: slram: invalid checking of absolute end address

commit c36a7ff4578ab6294885aef5ef241aeec4cdb1f0 upstream.

Fixed parsing end absolute address.

Signed-off-by: Jiri Engelthaler <>
Signed-off-by: Artem Bityutskiy <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 drivers/mtd/devices/slram.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



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;