linux/drivers/gpu/drm/tiny
Ethan Tidmore 46120745bb drm/tiny: sharp-memory: fix pointer error dereference
The function devm_drm_dev_alloc() returns a pointer error upon failure
not NULL. Change null check to pointer error check.

Detected by Smatch:
drivers/gpu/drm/tiny/sharp-memory.c:549 sharp_memory_probe() error:
'smd' dereferencing possible ERR_PTR()

Fixes: b8f9f21716 ("drm/tiny: Add driver for Sharp Memory LCD")
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260216040438.43702-1-ethantidmore06@gmail.com
2026-02-17 10:04:28 +01:00
..
appletbdrm.c drm/appletbdrm: use %p4cl instead of %p4cc 2025-04-21 10:18:30 -04:00
arcpgu.c drm/tiny: move to devm_platform_ioremap_resource() usage 2025-02-26 15:27:08 +01:00
bochs.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
cirrus-qemu.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
gm12u320.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
hx8357d.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
ili9163.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
ili9225.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
ili9341.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
ili9486.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
Kconfig drm/tiny: pixpaper: add explicit dependency on MMU 2025-11-06 13:47:29 +01:00
Makefile drm: tiny: Add support for Mayqueen Pixpaper e-ink panel 2025-09-05 14:53:07 +02:00
mi0283qt.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
panel-mipi-dbi.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
pixpaper.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
repaper.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sharp-memory.c drm/tiny: sharp-memory: fix pointer error dereference 2026-02-17 10:04:28 +01:00