]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: denali: add missing nand_release() call in denali_remove()
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Fri, 11 Dec 2015 14:02:34 +0000 (15:02 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 11 Dec 2015 20:42:46 +0000 (12:42 -0800)
commit03f66d07978a2a8af4fa69720b5d0857432b3166
tree687a77ddb8772f9e869cbede441a855c8a0a7c9b
parentec59502fa19f2ab7fae1195434195c5ced473b7b
mtd: nand: denali: add missing nand_release() call in denali_remove()

Unregister the NAND device from the NAND subsystem when removing a denali
NAND controller, otherwise the MTD attached to the NAND device is still
exposed by the MTD layer, and accesses to this device will likely crash
the system.

Fixes: bc1ee2922d74 ("mtd: denali: split the generic driver and PCI layer")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/denali.c