summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorTong Zhang <ztong0001@gmail.com>2021-02-28 21:45:11 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-30 14:45:00 +0200
commitb1ed9aef2804bd0632d0e7653d2279deaf4f78c5 (patch)
treec9e833967e1e952ff97f5a16b2214b41d7bbb328 /include/linux/fpga/fpga-mgr.h
parent055f876787cb03dae7ba75bc98f62dec405e16eb (diff)
can: c_can_pci: c_can_pci_remove(): fix use-after-free
[ Upstream commit 0429d6d89f97ebff4f17f13f5b5069c66bde8138 ] There is a UAF in c_can_pci_remove(). dev is released by free_c_can_dev() and is used by pci_iounmap(pdev, priv->base) later. To fix this issue, save the mmio address before releasing dev. Fixes: 5b92da0443c2 ("c_can_pci: generic module for C_CAN/D_CAN on PCI") Link: https://lore.kernel.org/r/20210301024512.539039-1-ztong0001@gmail.com Signed-off-by: Tong Zhang <ztong0001@gmail.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions