[PATCH] [drm/meson] meson_plane: Add error handling

2023-11-29 Thread Haoran Liu
This patch adds robust error handling to the meson_plane_create function in drivers/gpu/drm/meson/meson_plane.c. The function previously lacked proper handling for potential failure scenarios of the drm_universal_plane_init call. Signed-off-by: Haoran Liu --- drivers/gpu/drm/meson/meson_plane.c

[PATCH] [drm/sti] sti_compositor: Add error handlingin sti_compositor_bind

2023-11-29 Thread Haoran Liu
Previously, the function sti_compositor_bind did not properly handle potential failure scenarios of drm_vblank_init, which could lead to unexpected behavior. This update adds a check for the return value of drm_vblank_init. Signed-off-by: Haoran Liu --- drivers/gpu/drm/sti/sti_compositor.c | 7

[PATCH v2] [drm/meson] meson_plane: Add error handling v2(re-aligned)

2023-11-29 Thread Haoran Liu
This patch adds robust error handling to the meson_plane_create function in drivers/gpu/drm/meson/meson_plane.c. The function previously lacked proper handling for potential failure scenarios of the drm_universal_plane_init call. Signed-off-by: Haoran Liu --- drivers/gpu/drm/meson/meson_plane.c