]> Git Repo - linux.git/commit
vfio/pci: Clear error and request eventfd ctx after releasing
authorAlex Williamson <[email protected]>
Tue, 16 Jun 2020 21:26:36 +0000 (15:26 -0600)
committerAlex Williamson <[email protected]>
Wed, 17 Jun 2020 21:18:42 +0000 (15:18 -0600)
commit5c5866c593bbd444d0339ede6a8fb5f14ff66d72
tree50fc4e075bbd78d84d2c1d65785f96aef6c77dbb
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
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 <[email protected]>
Fixes: 1518ac272e78 ("vfio/pci: fix memory leaks of eventfd ctx")
Reported-by: Daniel Wagner <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Tested-by: Daniel Wagner <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
drivers/vfio/pci/vfio_pci.c
This page took 0.058031 seconds and 4 git commands to generate.