lkml.org 
[lkml]   [2015]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ps3-vuart: BUG_ON on null drv before dereferencing it on dev_dbg
From
Date
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 <colin.king@canonical.com>

I applied this to my ps3-linux repo. I can update it if you decide to
do the other fixes Geert mentioned.

-Geoff



\
 
 \ /
  Last update: 2015-09-01 19:41    [W:0.084 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site