RE: [PATCH 2/3] drivers/ps3: Fix ps3-vuart null dereference

2015-09-15 Thread David Laight
From: Colin Ian King > Sent: 14 September 2015 20:35 > 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. ... > diff

[PATCH 2/3] drivers/ps3: Fix ps3-vuart null dereference

2015-09-14 Thread Colin Ian King
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 Signed-off-by: Geoff Levand --- drive