Thread (5 messages) 5 messages, 2 authors, 2021-10-05

Re: [PATCH 1/2] firmware: arm_ffa: Add missing remove callback to ffa_bus_type

flat view

From: Jens Wiklander <hidden>
Date: 2021-10-04 10:11:48

On Fri, Sep 24, 2021 at 11:29 AM Sudeep Holla [off-list ref] wrote:
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.

Fixes: e781858488b9 ("firmware: arm_ffa: Add initial FFA bus support for device enumeration")
Reported-by: Jens Wiklander <redacted>
Signed-off-by: Sudeep Holla <redacted>
---
 drivers/firmware/arm_ffa/bus.c | 8 ++++++++
 1 file changed, 8 insertions(+)
Tested-by: Jens Wiklander <redacted>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help