diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-06-15 22:12:30 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-08-12 17:51:54 -0700 |
| commit | 062dc4693e2c10d77de06f61e6f3faf37c0a8383 (patch) | |
| tree | 4cdc8afe1955b2bcc7006438039cd6bc335ceaa6 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 9da976eb649c9e2f588a4499410e4d8af687925f (diff) | |
Input: sur40 - fix V4L error path cleanup
In sur40_probe(), if video_register_device() fails, the error path jumps to
err_unreg_video. This incorrectly attempts to unregister a video device
that was never successfully registered, and fails to free the V4L2 control
handler (v4l2_ctrl_handler_free) that was initialized immediately prior.
Fix this by introducing an err_free_ctrl label to properly free the V4L2
control handler and bypass video_unregister_device() when video device
registration fails.
Reported-by: sashiko-bot@kernel.org
Cc: stable@vger.kernel.org
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260616051235.1549517-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
