aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-09-11 09:56:40 +0800
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-09-23 14:54:49 +0200
commit359db09cf055497075a668b192f4578a0ed00955 (patch)
treea2af6ee27dc434b526dd6f70f0ec0d888b5938ab /scripts/Makefile.thinlto
parentmedia: i2c/platform: add V4L2_SET_EDID_HPD_LOW_JIFFIES define (diff)
media: adv748x: Fix endpoint reference leaks on probe failure
adv748x_parse_dt() takes an extra reference for every endpoint saved in state->endpoints. If parsing later fails, adv748x_probe() skips adv748x_dt_cleanup(), so the saved references remain held. A CSI-2 lane parsing error also returns from for_each_endpoint_of_node() without dropping the iterator's reference. Save the endpoint reference only after lane parsing succeeds. Drop the iterator reference before returning a lane parsing error and route all parse failures through the endpoint cleanup path to release any saved references. This retains the endpoints only for a successful probe. This issue was found by a static analysis checker and confirmed by manual source review. Fixes: 6a18865da8e3 ("media: i2c: adv748x: store number of CSI-2 lanes described in device tree") Fixes: eccf442ce156 ("media: i2c: adv748x: Support probing a single output") Cc: stable@vger.kernel.org Suggested-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions