]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] Correct partition failed erase address
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Thu, 8 Mar 2007 10:20:12 +0000 (12:20 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 8 Mar 2007 10:45:04 +0000 (10:45 +0000)
commita6e03c6496b8305ef6e0a7d1016c07286f0c6390
tree8364efdc01c453d429db53e24cf2655e69d1f7d5
parent75a9d25b35e5886b563c3537c8de4183e83ab67f
[MTD] Correct partition failed erase address

If an erase operation fails, the address at which the
failure occurred is returned by the driver.  The MTD
partition must adjust this address (by subtracting the
partition offset) before returning to the caller.
This was not happening, which caused JFFS2 to mark
the wrong block bad!

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdpart.c