]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: venus: Fix probe error handling
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Thu, 27 Mar 2025 12:53:04 +0000 (13:53 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Apr 2025 11:29:06 +0000 (13:29 +0200)
commit523cea3a19f0b3b020a4745344c136a636e6ffd7
treefa007bf1a6c05ff3797df2eecdd95fdbdaee52b6
parent4edd34175e3dd91dc30b3091efdf3f9c7143d4c4
media: venus: Fix probe error handling

Video device registering has been moved earlier in the probe function,
but the new order has not been propagated to error handling. This means
we can end with unreleased resources on error (e.g dangling video device
on missing firmware probe aborting).

Fixes: 08b1cf474b7f7 ("media: venus: core, venc, vdec: Fix probe dependency error")
Cc: stable@vger.kernel.org
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Reviewed-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/venus/core.c