Re: [PATCH 1/3] driver core: bus: introduce can_remove()

2024-02-05 Thread Christian König
Am 02.02.24 um 23:25 schrieb Hamza Mahfooz: Currently, drivers have no mechanism to block requests to unbind devices. However, this can cause resource leaks and leave the device in an inconsistent state, such that rebinding the device may cause a hang or otherwise prevent the device from being

Re: [PATCH 1/3] driver core: bus: introduce can_remove()

2024-02-02 Thread Greg Kroah-Hartman
On Fri, Feb 02, 2024 at 05:25:54PM -0500, Hamza Mahfooz wrote: > Currently, drivers have no mechanism to block requests to unbind > devices. And that is by design. > However, this can cause resource leaks and leave the device in > an inconsistent state, such that rebinding the device may cause a

[PATCH 1/3] driver core: bus: introduce can_remove()

2024-02-02 Thread Hamza Mahfooz
Currently, drivers have no mechanism to block requests to unbind devices. However, this can cause resource leaks and leave the device in an inconsistent state, such that rebinding the device may cause a hang or otherwise prevent the device from being rebound. So, introduce the can_remove()