Re: [PATCH 2/2] firmware: arm_scmi: Ensure drivers provide a probe function

From
Uwe Kleine-König <hidden>
Date
2021-06-24 19:56:11
Reply to
Sudeep Holla, 2021-06-24
On Thu, Jun 24, 2021 at 10:50:59AM +0100, Sudeep Holla wrote:
The bus probe callback calls the driver callback without further
checking. Better be safe than sorry and refuse registration of a driver
without a probe function to prevent a NULL pointer exception.

Fixes: 933c504424a2 ("firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices")
Reported-by: Uwe Kleine-König <redacted>
Signed-off-by: Sudeep Holla <redacted>
Acked-by: Uwe Kleine-König <redacted>

Thanks to pick my "suggestion" up also for scmi.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
Thread (7 messages) 7 messages, 3 authors, last reply 2021-06-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help