Thread (5 messages) flat view 5 messages, 3 authors, 2015-09-01

Re: [PATCH] ps3-vuart: BUG_ON on null drv before dereferencing it on dev_dbg

From: Geoff Levand <geoff@infradead.org>
Date: 2015-09-01 17:20:32
Also in: lkml

On Tue, 2015-09-01 at 11:21 +0100, Colin King wrote:
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 <redacted>
I applied this to my ps3-linux repo.  I can update it if you decide to
do the other fixes Geert mentioned.

-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help