path: root/LICENSES/preferred
diff options
authorDongliang Mu <mudongliangabcd@gmail.com>2022-06-09 08:35:28 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-20 10:30:37 +0100
commit945a9a8e448b65bec055d37eba58f711b39f66f0 (patch)
treea2e5b35c020d8bb997c8a69c1a0ed900686fdccf /LICENSES/preferred
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: syzbot+77b432d57c4791183ed4@syzkaller.appspotmail.com Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'LICENSES/preferred')
0 files changed, 0 insertions, 0 deletions

Privacy Policy