summaryrefslogtreecommitdiff
path: root/drivers/usb/host/uhci-hcd.c
diff options
context:
space:
mode:
authorDong Jia Shi <bjsdjshi@linux.ibm.com>2018-05-23 05:56:44 +0300
committerCornelia Huck <cohuck@redhat.com>2018-05-29 10:27:42 +0300
commit6238f92132a6da64b731de1a728fa46ffaa21f62 (patch)
tree45465435d773ecf4a24a3f8ad240745da880b6ce /drivers/usb/host/uhci-hcd.c
parent5c1cfb1c3948fe93a32dfcd75223dda0f1558bb7 (diff)
downloadlinux-6238f92132a6da64b731de1a728fa46ffaa21f62.tar.xz
vfio: ccw: set ccw->cda to NULL defensively
Let's avoid free on ccw->cda that points to a guest address or an already freed memory area by setting it to NULL if memory allocation didn't happen or failed. Signed-off-by: Dong Jia Shi <bjsdjshi@linux.ibm.com> Message-Id: <20180523025645.8978-4-bjsdjshi@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'drivers/usb/host/uhci-hcd.c')
0 files changed, 0 insertions, 0 deletions