aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorFarhan Ali <alifm@linux.ibm.com>2019-07-11 10:28:53 -0400
committerCornelia Huck <cohuck@redhat.com>2019-07-15 14:16:37 +0200
commitc1ab69268d124ebdbb3864580808188ccd3ea355 (patch)
tree482613c97147ed7fedb7fa517db7d6a0eb95ebbe /drivers/pci
parentvfio-ccw: Fix memory leak and don't call cp_free in cp_init (diff)
downloadlinux-dev-c1ab69268d124ebdbb3864580808188ccd3ea355.tar.xz
linux-dev-c1ab69268d124ebdbb3864580808188ccd3ea355.zip
vfio-ccw: Set pa_nr to 0 if memory allocation fails for pa_iova_pfn
So we don't call try to call vfio_unpin_pages() incorrectly. Fixes: 0a19e61e6d4c ("vfio: ccw: introduce channel program interfaces") Signed-off-by: Farhan Ali <alifm@linux.ibm.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <33a89467ad6369196ae6edf820cbcb1e2d8d050c.1562854091.git.alifm@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions