diff options
author | Colin Ian King <[email protected]> | 2018-11-07 20:31:22 +0000 |
---|---|---|
committer | Gerd Hoffmann <[email protected]> | 2018-11-14 14:21:03 +0100 |
commit | 040b595a91b21b61d6e0d388394b79c85f614e7c (patch) | |
tree | f9d039d6ba4c638da8e0706c6969622f8cab6cde /net/switchdev/switchdev.c | |
parent | 6862965261a09fc459815ba38efb758fc88006df (diff) |
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 <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions