vfio: fix interrupt unregister for hotplug notifier
authorDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Wed, 24 Oct 2018 10:11:31 +0000 (12:11 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Oct 2018 00:59:48 +0000 (01:59 +0100)
commitd59ba0296e886adb38ede9505ea7508e62df304d
tree4d6539bffbd9ccd833cbc75273d2d8d79de388ee
parent6bcb7c95fe14544bca9de1a698e4553533192197
vfio: fix interrupt unregister for hotplug notifier

This function is documented to return the number of unregistered
callbacks or negative numbers on error, but pci_vfio checks for
ret != 0 to detect failures. Not anymore.

Fixes: c115fd000c32 ("vfio: handle hotplug request notifier")

Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/bus/pci/linux/pci_vfio.c