]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mtd corruption fix
authorRichard Purdie <rpurdie@rpsys.net>
Sun, 27 Aug 2006 08:23:33 +0000 (01:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 27 Aug 2006 18:01:29 +0000 (11:01 -0700)
commit7fd5aecc5d32882f8e29b14370e9ce2520e7e56f
tree99fb19859089dae6b5c139df1b563220ec80ffee
parent6946bd636364effce06ea46fe8f8cd6e2edb004e
[PATCH] mtd corruption fix

Read the return value before we release the nand device otherwise the
value can become corrupted by another user of chip->ops, ultimately
resulting in filesystem corruption.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Acked-by: Josh Boyer <jwboyer@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/nand/nand_base.c