fbdev: platinumfb: add error checking for ioremap calls

The ioremap() and ioremap_wt() calls in platinumfb_probe() were not
checked for failure. If any of these mappings fail, the driver would
dereference NULL pointers, leading to a kernel panic.

Add proper error checking and use goto-based cleanup to avoid code
duplication across the error paths.

Signed-off-by: BingKun Yue <yuebingkun@kylinos.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
BingKun Yue 2026-08-17 14:39:42 +08:00 • committed by Helge Deller
commit ba13226fc9