mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +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]>