mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/imx/lcdc: fix a NULL vs IS_ERR() bug in probe
[ Upstream commitdae2f7b89a] The devm_drm_dev_alloc() function returns error pointers. It never returns NULL. Fix the check. Fixes:c87e859cde("drm/imx/lcdc: Implement DRM driver for imx25") Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/d0a1fc55-3ef6-444e-b3ef-fdc937d8d57a@kili.mountain Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1e4e06b27c
commit
0f4773ce05
1 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue