diff options
| author | 2026-02-15 22:04:38 -0600 | |
|---|---|---|
| committer | 2026-02-17 10:04:28 +0100 | |
| commit | 46120745bb4e7e1f09959624716b4c5d6e2c2e9e (patch) | |
| tree | c32d0177ec458d5e11bc6912f06d2209d0770148 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | nouveau/gsp: drop WARN_ON in ACPI probes (diff) | |
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: b8f9f21716fec ("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
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
