mtd: check for valid pdata inside plat_nand
authorJohn Crispin <blogic@openwrt.org>
Sun, 22 Jul 2012 06:59:57 +0000 (08:59 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:01:52 +0000 (15:01 +0100)
commitda3888cb84065a03d30b5f729b405e573bd0d66e
treee103a9ba2df458630ca330de26fa7936ecccbbf0
parentb8c4bf26109878d39b5e6d1425b8c9cd562ef525
mtd: check for valid pdata inside plat_nand

If plat_nand loads and the platform_data is not properly set it will segfault.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/plat_nand.c