aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorDongliang Mu <[email protected]>2022-06-09 08:35:28 +0100
committerMauro Carvalho Chehab <[email protected]>2022-06-20 10:30:37 +0100
commit945a9a8e448b65bec055d37eba58f711b39f66f0 (patch)
treea2e5b35c020d8bb997c8a69c1a0ed900686fdccf /tools/perf/scripts/python/syscall-counts.py
parent5b9b598453d3ae5fa66d7ab591008373a89b91a0 (diff)
media: pvrusb2: fix memory leak in pvr_probe
The error handling code in pvr2_hdw_create forgets to unregister the v4l2 device. When pvr2_hdw_create returns back to pvr2_context_create, it calls pvr2_context_destroy to destroy context, but mp->hdw is NULL, which leads to that pvr2_hdw_destroy directly returns. Fix this by adding v4l2_device_unregister to decrease the refcount of usb interface. Reported-by: [email protected] Signed-off-by: Dongliang Mu <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions