[PATCH 2/2] firmware: arm_scmi: Ensure drivers provide a probe function
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Jun 24 12:54:55 PDT 2021
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 <u.kleine-koenig at pengutronix.de>
> Signed-off-by: Sudeep Holla <sudeep.holla at arm.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
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/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210624/5ec3f652/attachment.sig>
More information about the linux-arm-kernel
mailing list