]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7dc88610b4a036602ff859c956a51530b2d3417
tree48e444d95e883ed57f993b872c42be9296311eb9
parentebee490fd35f2914a131f6795a9a6d4038f03952
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