]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: Delete partitions attached to the device when a device is deleted
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 2 Dec 2018 09:54:24 +0000 (10:54 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 5 Dec 2018 19:15:36 +0000 (00:45 +0530)
commitca31ff0fa7c14eb7f0f9b070945773b931915cd6
tree1931d8d998ffd0bea9b4719a64a973a71afb2b1b
parent26b3aa22d2e9f40b2dbffa6a85c58a6730481a41
mtd: Delete partitions attached to the device when a device is deleted

If we don't do that, partitions might still be exposed while the
underlying device is gone.

Fixes: ce385b5258b1 ("mtd: mtdpart: implement proper partition handling")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Heiko Schocher <hs@denx.de>
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h