diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-04-26 16:16:31 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-05 17:57:03 +0300 |
| commit | e0f1c9a90ef665f2587c274a8fed59f2dfc575a6 (patch) | |
| tree | 877c13103bf835bab6b67f15a70d1a3fb3a78861 /include/linux | |
| parent | 62a08bc8916ef36fddd5e4069df381f6379bbecb (diff) | |
| download | linux-e0f1c9a90ef665f2587c274a8fed59f2dfc575a6.tar.xz | |
media: ti: vpe: unwind v4l2 device registration on probe error
If the vpe_top resource is missing, vpe_probe() returns -ENODEV after
v4l2_device_register() has succeeded. Probe failures do not call the
driver's remove callback, so the v4l2 device remains registered on that
error path.
Route that failure through the existing v4l2_device_unregister() unwind
label, matching the other errors after v4l2_device_register().
Fixes: 4d59c7d45585 ("media: ti-vpe: vpe: Add missing null pointer checks")
Cc: stable@vger.kernel.org
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Reviewed-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
