]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MTD] [NAND] fix possible Ooops in rfc_from4
authorSebastian Siewior <bigeasy@tglx.de>
Fri, 18 Apr 2008 20:44:24 +0000 (13:44 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 13:13:14 +0000 (14:13 +0100)
commitc27e9b80bee039cfefa51c7af08b01eaab3dfb61
tree37e0da84a4529d95f7b775ab66f29ef99446f7fe
parentcb53b3b99992b6c548d56cdf47bc710640ee2ee1
[MTD] [NAND] fix possible Ooops in rfc_from4

I found this while I was looking how the rs_lib is working.  The rs_decoder is
initialized _after_ the nand core code read the BBT table and _after_ the
partition table has been added.  The driver has a private BBT description
which is in located in flash data so we Ooops if there is a bit flip _or_ if a
bit flips while reading the partition table.

This patch moves the initialization of the rs_lib before the first possible
access by nand core.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jörn Engel <joern@wh.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/rtc_from4.c