mtd: nandsim: fix free of NULL pointer

If allocating ns->nand_pages_slab fails, do not try to destroy it when
cleaning up nandsim resources.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
shengyong 2015-06-25 02:23:13 +00:00 • committed by Brian Norris
commit ec7478fa17