mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
699fb50d99
In the current code, devres_release_all() only gets called if the device has a bus and has been probed. This leads to issues when using bus-less or driver-less devices where the device might never get freed if a managed resource holds a reference to the device. This is happening in the DRM framework for example. We should thus call devres_release_all() in the device_del() function to make sure that the device-managed actions are properly executed when the device is unregistered, even if it has neither a bus nor a driver. This is effectively the same change than commit |
||
---|---|---|
.. | ||
.kunitconfig | ||
Kconfig | ||
Makefile | ||
platform-device-test.c | ||
property-entry-test.c | ||
root-device-test.c | ||
test_async_driver_probe.c |