diff options
author | Sudeep Holla <[email protected]> | 2021-09-24 10:28:58 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2021-10-05 10:39:46 +0100 |
commit | 244f5d597e1ea519c2085fbd9819458688775e42 (patch) | |
tree | cf26d757bd61e7a322c9dcdd70a898dc11ce7731 /scripts/gdb/linux/utils.py | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
firmware: arm_ffa: Add missing remove callback to ffa_bus_type
Currently the arm_ffa firmware driver can be built as module and hence
all the users of FFA driver. If any driver on the ffa bus is removed or
unregistered, the remove callback on all the device bound to the driver
being removed should be callback. For that to happen, we must register
a remove callback on the ffa_bus which is currently missing. This results
in the probe getting called again without the previous remove callback
on a device which may result in kernel crash.
Fix the issue by registering the remove callback on the FFA bus.
Link: https://lore.kernel.org/r/[email protected]
Fixes: e781858488b9 ("firmware: arm_ffa: Add initial FFA bus support for device enumeration")
Reported-by: Jens Wiklander <[email protected]>
Tested-by: Jens Wiklander <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions