bus/pci: check VFIO reset ioctl error
authorJonas Pfefferle <jpf@zurich.ibm.com>
Thu, 26 Oct 2017 15:19:49 +0000 (17:19 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Oct 2017 21:51:39 +0000 (23:51 +0200)
commitf25f8f36764481a99c8deac357da40b034d9f00e
tree1cbfb63350d0f049e32d22bbc5a94b8853ca598e
parent633e4c7d716e852a0a41267fd349c6275351c42f
bus/pci: check VFIO reset ioctl error

Check return value of device reset ioctl

Coverity issue: 195003
Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping")

Signed-off-by: Jonas Pfefferle <jpf@zurich.ibm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/bus/pci/linux/pci_vfio.c