summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 10:09:24 +0000
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-10-01 12:45:50 +0200
commit02421d7278e4a62c3daf37ad6c45d4af96ee4252 (patch)
tree1bd1701e5386f3aa922098556780c51ab50f4ebe /tools/perf/scripts/python
parentce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd (diff)
media: pvrusb2: Fix USB parent device leak in class_dev_create()
class_dev_create() stores a reference to the USB device obtained with get_device() in class_dev->parent, which class_dev_destroy() releases. When device_register() fails the function only drops class_dev, so the reference to the USB parent device is never released. Drop the parent reference on the failure path as well. Fixes: 28c4a5e6d324 ("V4L/DVB: pvrusb2: Fix USB parent device reference count") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions