Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a77298 authored by Alex Williamson's avatar Alex Williamson Committed by Greg Kroah-Hartman
Browse files

vfio/pci: Clear error and request eventfd ctx after releasing



[ Upstream commit 5c5866c593bbd444d0339ede6a8fb5f14ff66d72 ]

The next use of the device will generate an underflow from the
stale reference.

Cc: Qian Cai <cai@lca.pw>
Fixes: 1518ac272e78 ("vfio/pci: fix memory leaks of eventfd ctx")
Reported-by: default avatarDaniel Wagner <dwagner@suse.de>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Tested-by: default avatarDaniel Wagner <dwagner@suse.de>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f0e13175
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment