diff options
author | 2018-11-07 20:31:22 +0000 | |
---|---|---|
committer | 2018-11-14 14:21:03 +0100 | |
commit | 040b595a91b21b61d6e0d388394b79c85f614e7c (patch) | |
tree | f9d039d6ba4c638da8e0706c6969622f8cab6cde /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/virtio: bump driver version after explicit synchronization addition (diff) | |
download | wireguard-linux-040b595a91b21b61d6e0d388394b79c85f614e7c.tar.xz wireguard-linux-040b595a91b21b61d6e0d388394b79c85f614e7c.zip |
drm/virtio: fix memory leak of vfpriv on error return path
The allocation for vfpriv is being leaked on an error return path,
fix this by kfree'ing it before returning.
Detected by CoverityScan, CID#1475380 ("Resource Leak")
Fixes: 6a37c49a94a9 ("drm/virtio: Handle context ID allocation errors")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181107203122.6861-1-colin.king@canonical.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions