From: Sebastian Siewior Date: Fri, 18 Apr 2008 20:44:24 +0000 (-0700) Subject: [MTD] [NAND] fix possible Ooops in rfc_from4 X-Git-Tag: v2.6.26-rc1~1069^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c27e9b80bee039cfefa51c7af08b01eaab3dfb61;p=pandora-kernel.git [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 Cc: Thomas Gleixner Cc: Jörn Engel Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- Reading git-diff-tree failed