]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/type1: Fix leak on error path
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Jul 2013 14:28:58 +0000 (08:28 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Jul 2013 14:28:58 +0000 (08:28 -0600)
commit2cc4815b2d8565348d1b15ee13c9f9bb558650ae
treea28c39a7e8f7b4855a4ff867051fd90297aad670
parent4716bf82622f1512072b835fc65c0130fd42fae3
vfio/type1: Fix leak on error path

We also don't handle unpinning zero pages as an error on other exits
so we can fix that inconsistency by rolling in the next conditional
return.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c