[PATCH v2 4/5] mtd: rfd_ftl: fix use-after-free

Miquel Raynal miquel.raynal at bootlin.com
Mon Aug 16 07:26:54 PDT 2021


On Sat, 2021-08-07 at 21:45:37 UTC, Sean Young wrote:
> del_mtd_blktrans_dev() will kfree part, so after this call both part and
> dev point to freed memory. Move the call to avoid use-after-free.
> 
> Signed-off-by: Sean Young <sean at mess.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list