]> git.karo-electronics.de Git - linux-beck.git/commit
vfio-pci: Handle error from pci_iomap
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 3 Jan 2017 11:56:46 +0000 (17:26 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 4 Jan 2017 15:34:39 +0000 (08:34 -0700)
commite19f32da5ded958238eac1bbe001192acef191a2
treeb80aac9fe6e190097ea965a1bdbd1855c88f8367
parentd293dbaa540b5800817cc10832d764b17cc211b5
vfio-pci: Handle error from pci_iomap

Here, pci_iomap can fail, handle this case release selected
pci regions and return -ENOMEM.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c