mtd: nand: fix pointer NULL pointer dereferencing
authorStanislav Fomichev <kernel@fomichev.me>
Mon, 7 Feb 2011 20:48:25 +0000 (23:48 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:44 +0000 (14:22 +0000)
commit7912a5e7f37512d8d105785046137435b70347ce
treefe093be85b47e494a5ce4c078cc6bd502d1fd949
parent7b7e905ec2ec511e06279181ca95a892db21e292
mtd: nand: fix pointer NULL pointer dereferencing

In 'verify_bbt_descr()', first check the "bd" pointer, then
dereference it.

Comments amended by Artem.

Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_bbt.c