aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorSean Young <[email protected]>2021-08-07 22:45:37 +0100
committerMiquel Raynal <[email protected]>2021-08-17 18:42:58 +0200
commitd056f8cd2fc29fbfb45f936cc1ac36ff67d7db93 (patch)
treef36feb789a6a143782a2fb97c9cedf26c8561776 /lib/test_overflow.c
parenta3a447848a153d0dae63d02ceb94b02fb43ec899 (diff)
mtd: rfd_ftl: fix use-after-free
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 <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions