]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: qcom: camss: cleanup media device allocated resource on error path
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Tue, 13 May 2025 14:23:45 +0000 (17:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:38 +0000 (16:28 +0200)
commit03c0e00ccf5947e3e790a1c65d017eee7567d5cc
tree4c14922181e8915b441c7d195f46511f62b75d8d
parent3c0e4cc4f55f9a1db2a761e4ffb27c9594245888
media: qcom: camss: cleanup media device allocated resource on error path

commit 69080ec3d0daba8a894025476c98ab16b5a505a4 upstream.

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: a1d7c116fcf7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/qcom/camss/camss.c