diff options
| author | Yang Zi <2959243019@qq.com> | 2026-08-25 16:58:15 +0800 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-09-10 21:57:59 +0200 |
| commit | 3fb13d29cf8eb4502837bff06b2873c5435f6ffd (patch) | |
| tree | abb290ff8745a32d8cb04d433f4d1488556b4358 /scripts/Makefile.thinlto | |
| parent | 94e6a058b16820e02f25e1221a4c4e713ba23550 (diff) | |
| download | linux-3fb13d29cf8eb4502837bff06b2873c5435f6ffd.tar.gz linux-3fb13d29cf8eb4502837bff06b2873c5435f6ffd.zip | |
fbdev: ssd1307fb: fix NULL pointer dereference on missing match data
device_get_match_data() can return NULL, e.g. when the device is matched
through the I2C device ID table rather than the OF match table. The
returned value is stored in par->device_info and later dereferenced when
initializing par->vcomh, causing a NULL pointer dereference.
Check the return value right after the assignment and bail out with
-ENODEV (releasing the already allocated framebuffer) before any
dereference.
Signed-off-by: Yang Zi <2959243019@qq.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
