]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: Fixed breaking list in __mtd_del_partition.
authorAndreas Oetken <ennoerlangen@gmail.com>
Tue, 2 Nov 2021 17:26:04 +0000 (18:26 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 3 Dec 2021 13:27:18 +0000 (14:27 +0100)
commit77e2997df200e6602665dcf94f7c2190028281b2
treeb8d2cbbe48ebdb4a89eb98789320554dcaf912b0
parentbad68f6c0c96b209be688acd1511fc590315093b
mtd: Fixed breaking list in __mtd_del_partition.

Not the child partition should be removed from the partition list
but the partition itself. Otherwise the partition list gets broken
and any subsequent remove operations leads to a kernel panic.

Fixes: 38d764e1d4ed ("mtd: implement proper partition handling")
Signed-off-by: Andreas Oetken <andreas.oetken@siemens-energy.com>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211102172604.2921065-1-andreas.oetken@siemens-energy.com
drivers/mtd/mtdpart.c