[PATCH v2] backlight: l4f00242t03: Add check for spi_setup

2024-07-05 Thread Chen Ni
Add check for the return value of spi_setup() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- Changelog: v1 -> v2: 1. Use dev_err_probe() to match other error paths --- drivers/video/backlight/l4f00242t03.c | 5 - 1 file changed, 4 insertions(+)

[PATCH] backlight: l4f00242t03: Add check for spi_setup

2024-07-05 Thread Chen Ni
Add check for the return value of spi_setup() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- drivers/video/backlight/l4f00242t03.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers

[PATCH] fbdev: omap2: Return clk_prepare_enable to transfer the error

2024-06-27 Thread Chen Ni
Return clk_prepare_enable() in order to transfer the error if it fails. Signed-off-by: Chen Ni --- drivers/video/fbdev/omap2/omapfb/dss/venc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/venc.c b/drivers/video/fbdev/omap2/omapfb

[PATCH] drm/qxl: Add check for drm_cvt_mode

2024-06-21 Thread Chen Ni
Add check for the return value of drm_cvt_mode() and return the error if it fails in order to avoid NULL pointer dereference. Fixes: 1b043677d4be ("drm/qxl: add qxl_add_mode helper function") Signed-off-by: Chen Ni --- drivers/gpu/drm/qxl/qxl_display.c | 3 +++ 1 file changed, 3

[PATCH 2/2] drm/panel-xinpeng-xpp055c272: add check for mipi_dsi_dcs_enter_sleep_mode

2024-06-20 Thread Chen Ni
Add check for the return value of mipi_dsi_dcs_enter_sleep_mode() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel

[PATCH 1/2] drm/panel: ltk050h3146w: add check for mipi_dsi_dcs_enter_sleep_mode

2024-06-20 Thread Chen Ni
Add check for the return value of mipi_dsi_dcs_enter_sleep_mode() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel

[PATCH] drm/panel: sitronix-st7789v: Add check for of_drm_get_panel_orientation

2024-05-28 Thread Chen Ni
Add check for the return value of of_drm_get_panel_orientation() and return the error if it fails in order to catch the error. Fixes: b27c0f6d208d ("drm/panel: sitronix-st7789v: add panel orientation support") Signed-off-by: Chen Ni --- drivers/gpu/drm/panel/panel-sitronix-st7

[PATCH] drm/bochs: Add check for drm_simple_display_pipe_init

2024-05-23 Thread Chen Ni
Add check for the return value of drm_simple_display_pipe_init() and return the error if it fails in order to catch the error. Signed-off-by: Chen Ni --- drivers/gpu/drm/tiny/bochs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers

[PATCH] drm/exynos: Add check for dma_set_max_seg_size

2024-04-29 Thread Chen Ni
Add check for the return value of dma_set_max_seg_size() and return the error if it fails in order to catch the error. Fixes: ddfd4ab6bb08 ("drm/exynos: Fix dma_parms allocation") Signed-off-by: Chen Ni --- drivers/gpu/drm/exynos/exynos_drm_dma.c | 5 - 1 file changed, 4 insert

[PATCH] drm/tegra: dsi: Add missing check for of_find_device_by_node

2023-10-24 Thread Chen Ni
Add check for the return value of of_find_device_by_node() and return the error if it fails in order to avoid NULL pointer dereference. Fixes: e94236cde4d5 ("drm/tegra: dsi: Add ganged mode support") Signed-off-by: Chen Ni --- drivers/gpu/drm/tegra/dsi.c | 4 +++- 1 file changed, 3