diff options
| author | 2026-09-17 09:54:43 +0000 | |
|---|---|---|
| committer | 2026-09-23 14:54:50 +0200 | |
| commit | 7b7a69c91c0537d48150942d9707614a4fdd3766 (patch) | |
| tree | f65306dd306a0a95c1d1e64fbc846ca2075f5640 /scripts/Makefile.thinlto | |
| parent | media: go7007: only set audio_enabled if go7007_snd_init() succeeded (diff) | |
media: au0828: Fix media device leak in au0828_usb_probe()
au0828_media_device_init() takes a reference to a media device with
media_device_usb_allocate(). When au0828_v4l2_device_register()
fails right after, the error path only unregisters the entities and
frees au0828_dev, so that reference is never released.
Release it with media_device_delete() on that path.
Fixes: 812658d88d26 ("media: change au0828 to use Media Device Allocator API")
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
