mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
On the unlikely event that drv is null, the current code will perform a null pointer dereference with it when printing a dev_dbg message. Instead, the BUG_ON check on drv should be performed before we emit the dev_dbg message. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Geoff Levand <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>