mtd: nandsim: fix double free
authorshengyong <shengyong1@huawei.com>
Thu, 25 Jun 2015 02:23:14 +0000 (02:23 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Jul 2015 22:20:10 +0000 (15:20 -0700)
commit5891a8d11f79b9a45a7334a63d0fa731875bc308
tree48e444d95e883ed57f993b872c42be9296311eb9
parentec7478fa173f65e5ee5fd2ba42c59ca3e700027b
mtd: nandsim: fix double free

Do not call free_device() in init_nandsim, the caller - ns_init_module -
will take care of that if something goes wrong.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nandsim.c