media: qcom: camss: cleanup media device allocated resource on error path
A call to media_device_init() requires media_device_cleanup() counterpart to complete cleanup and release any allocated resources. This has been done in the driver .remove() right from the beginning, but error paths on .probe() shall also be fixed. Fixes: a1d7c116 ("media: camms: Add core files") Cc: stable@vger.kernel.org Signed-off-by:Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Reviewed-by:
Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by:
Bryan O'Donoghue <bod@kernel.org> Signed-off-by:
Hans Verkuil <hverkuil@xs4all.nl>
Loading
Please sign in to comment