diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-17 20:21:53 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-05 17:57:02 +0300 |
| commit | 34ca1065a4b2cf776c28d7cece6f6c9d90f7e3a3 (patch) | |
| tree | 5e6b833dee9a0b1f7ed650af9bdf8c5fe642e654 /include/linux/debugobjects.h | |
| parent | 7d8bf3d8f91073f4db347ed3aa6302b56107499c (diff) | |
| download | linux-34ca1065a4b2cf776c28d7cece6f6c9d90f7e3a3.tar.xz | |
media: ti: vpe: Fix fwnode_handle leak in vip_probe_complete()
In vip_probe_complete(), the fwnode_handle reference is not released
if the loop continues via the default switch case or if alloc_port()
fails. This results in a reference count leak.
Switch to using the __free(fwnode_handle) cleanup attribute to ensure
the reference is automatically released when the handle goes out of
scope.
Fixes: fc2873aa4a21 ("media: ti: vpe: Add the VIP driver")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
