[PATCH] drm/imx/lcdc: fix a NULL vs IS_ERR() bug in probe

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed Mar 22 09:16:04 UTC 2023


On Wed, Mar 22, 2023 at 12:06:55PM +0300, Dan Carpenter wrote:
> The devm_drm_dev_alloc() function returns error pointers.  It never
> returns NULL.  Fix the check.
> 
> Fixes: c87e859cdeb5 ("drm/imx/lcdc: Implement DRM driver for imx25")
> Signed-off-by: Dan Carpenter <error27 at gmail.com>

Reviewed-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Thanks!
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: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230322/d19c099e/attachment.sig>


More information about the dri-devel mailing list