media: venus: Fix probe error handling
commit 523cea3a upstream. 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: 08b1cf47 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment