Hello, On Fri, Feb 18, 2022 at 06:20:31PM +0900, William Breathitt Gray wrote: > From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > > dev_get_drvdata() returns NULL since commit b56346ddbd82 ("counter: Use > container_of instead of drvdata to track counter_device") which wrongly > claimed there were no users of drvdata. Convert to container_of() to > fix a null pointer dereference. > > Reported-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> > Fixes: b56346ddbd82 ("counter: Use container_of instead of drvdata to track counter_device") > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > Tested-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx> > Signed-off-by: William Breathitt Gray <vilhelm.gray@xxxxxxxxx> > --- William didn't tell explicitly, so in case there are doubts: This patch is targeted for v5.17. Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature