diff options
| author | Lorenzo Stoakes (ARM) <ljs@kernel.org> | 2026-09-26 14:17:04 +0100 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-10-13 11:32:56 +0200 |
| commit | 5192201aaac2a923ff98306e3ccda58718ee395f (patch) | |
| tree | 7f3440643a87d599cec5e7009b3576a331b340d8 /scripts/Makefile.thinlto | |
| parent | 8ea6c6e77ccf887f3e68c64f4c261071a345da1e (diff) | |
fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error
fb_deferred_io_init() allocates deferred I/O state, populating
info->fbdefio_state, or leaving it NULL if an error occurs.
Currently sh_mobile_lcdc_start() ignores its return value.
Therefore if an error arises in fb_deferred_io_init() (for instance, due
to an allocation failure) info->fbdefio_state is left NULL.
When the file is subsequently opened, fb_open() will dereference a NULL
pointer (calling fb_deferred_io_open()).
Fix this by checking for the error.
Also clear info->fbdefio in that case, so that sh_mobile_lcdc_stop() does
not attempt to clean up deferred I/O state that was never initialised.
Fixes: 56c134f7f1b5 ("fbdev: Track deferred-I/O pages in pageref struct")
Cc: stable@vger.kernel.org
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
