Skip to content
Commit 5c5866c5 authored by Alex Williamson's avatar Alex Williamson
Browse files

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



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

Cc: Qian Cai <cai@lca.pw>
Fixes: 1518ac27 ("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>
parent b3a9e3b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment