diff options
author | 2021-02-01 16:28:25 +0000 | |
---|---|---|
committer | 2021-02-02 09:06:02 -0700 | |
commit | 7e31d6dc2c78b2a0ba0039ca97ca98a581e8db82 (patch) | |
tree | 4b83cdfe921969ac1ee674d4a1810f31639dce83 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | vfio-pci/zdev: remove unused vdev argument (diff) | |
download | wireguard-linux-7e31d6dc2c78b2a0ba0039ca97ca98a581e8db82.tar.xz wireguard-linux-7e31d6dc2c78b2a0ba0039ca97ca98a581e8db82.zip |
vfio-pci/zdev: fix possible segmentation fault issue
In case allocation fails, we must behave correctly and exit with error.
Fixes: e6b817d4b821 ("vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO")
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions