driver core: Release all resources during unbind before updating device links
stable inclusion from stable-v4.19.301 commit 46100607c6f4dbae4121c370c3295ad8b75637e7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8T1U8 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=46100607c6f4dbae4121c370c3295ad8b75637e7 ---------------------------------------------- commit 2e84dc37920012b458e9458b19fc4ed33f81bc74 upstream. This commit fixes a bug in commit 9ed98953 ("driver core: Functional dependencies tracking support") where the device link status was incorrectly updated in the driver unbind path before all the device's resources were released. Fixes: 9ed98953 ("driver core: Functional dependencies tracking support") Cc: stable <stable@kernel.org> Reported-by:Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Closes: https://lore.kernel.org/all/20231014161721.f4iqyroddkcyoefo@pengutronix.de/ Signed-off-by:
Saravana Kannan <saravanak@google.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Yang Yingliang <yangyingliang@huawei.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Mark Brown <broonie@kernel.org> Cc: Matti Vaittinen <mazziesaccount@gmail.com> Cc: James Clark <james.clark@arm.com> Acked-by:
"Rafael J. Wysocki" <rafael@kernel.org> Tested-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20231018013851.3303928-1-saravanak@google.com Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Zhang Zekun <zhangzekun11@huawei.com>
Loading
Please sign in to comment