diff options
| author | 2026-09-17 10:09:24 +0000 | |
|---|---|---|
| committer | 2026-10-01 12:45:50 +0200 | |
| commit | 02421d7278e4a62c3daf37ad6c45d4af96ee4252 (patch) | |
| tree | 1bd1701e5386f3aa922098556780c51ab50f4ebe /scripts/Makefile.thinlto | |
| parent | media: tw686x: fix V4L2 device lifetime on probe failure (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
