mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
The function viafb_lcd_get_mobile_state() calls ioremap() without checking the return value. If ioremap() fails (returns NULL), the subsequent readw() will cause a NULL pointer dereference. Signed-off-by: Wang Jun <[email protected]> Signed-off-by: Helge Deller <[email protected]>