aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-11-07 20:31:22 +0000
committerGerd Hoffmann <[email protected]>2018-11-14 14:21:03 +0100
commit040b595a91b21b61d6e0d388394b79c85f614e7c (patch)
treef9d039d6ba4c638da8e0706c6969622f8cab6cde /net/switchdev/switchdev.c
parent6862965261a09fc459815ba38efb758fc88006df (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