]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: qcom_wcnss_iris: Add missing put_device() on error in probe
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 2 Apr 2025 10:59:51 +0000 (13:59 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 May 2025 15:10:55 +0000 (10:10 -0500)
commit0cb4b1b97041d8a1f773425208ded253c1cb5869
tree25b6525d77fedfa9a8e531ab60b52cba0c4f77b3
parentb170eb0d117d991585eb857a8e48be122efb057e
remoteproc: qcom_wcnss_iris: Add missing put_device() on error in probe

The device_del() call matches with the device_add() but we also need
to call put_device() to trigger the qcom_iris_release().

Fixes: 1fcef985c8bd ("remoteproc: qcom: wcnss: Fix race with iris probe")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/4604f7e0-3217-4095-b28a-3ff8b5afad3a@stanley.mountain
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_wcnss_iris.c