diff options
author | Dong Jia Shi <bjsdjshi@linux.ibm.com> | 2018-05-23 05:56:44 +0300 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2018-05-29 10:27:42 +0300 |
commit | 6238f92132a6da64b731de1a728fa46ffaa21f62 (patch) | |
tree | 45465435d773ecf4a24a3f8ad240745da880b6ce /drivers/usb/host/uhci-hcd.c | |
parent | 5c1cfb1c3948fe93a32dfcd75223dda0f1558bb7 (diff) | |
download | linux-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