diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2026-03-27 05:17:28 +0300 |
|---|---|---|
| committer | Neil Armstrong <neil.armstrong@linaro.org> | 2026-05-05 15:43:36 +0300 |
| commit | 50987d4e6c55929aa2d4d3976e74ccbae22d5017 (patch) | |
| tree | bb366b22d87e3a0eb4c9ab3bb7a64b4015b9a777 /include | |
| parent | 3780c41460a9ad6d5d4c09a416765c6cc285033b (diff) | |
| download | linux-50987d4e6c55929aa2d4d3976e74ccbae22d5017.tar.xz | |
drm/panel: himax-hx83121a: Fix incorrect error check for devm_drm_panel_alloc()
Check devm_drm_panel_alloc() return value for ERR_PTR instead of NULL.
devm_drm_panel_alloc() returns an ERR_PTR on failure, never NULL. Using
a NULL check skips the error path and may cause a NULL pointer
dereference.
Fixes: a7c61963b727 ("drm/panel: Add Himax HX83121A panel driver")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Pengyu Luo <mitltlatltl@gmail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260327021728.647182-1-nichen@iscas.ac.cn
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
