[PATCH,v2] drm/panel: Fix return value check in nt35950_probe()
Sam Ravnborg
sam at ravnborg.org
Thu Mar 17 19:21:06 UTC 2022
On Thu, Mar 17, 2022 at 04:37:07PM +0800, Lu Wei wrote:
> In function nt35950_probe(), mipi_dsi_device_register_full() is called
> to create a MIPI DSI device. If it fails, a pointer encoded with an error
> will be returned, so use IS_ERR() to check the return value. Besides, use
> PTR_ERR to return the actual errno.
>
> Fixes: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels")
> Signed-off-by: Lu Wei <luwei32 at huawei.com>
Acked-by: Sam Ravnborg <sam at ravnborg.org>
More information about the dri-devel
mailing list