Thread (3 messages) 3 messages, 3 authors, 2016-09-15

Re: [PATCH] mwifiex: fix null pointer deference when adapter is null

flat view

From: Julian Calaby <hidden>
Date: 2016-09-15 13:57:10
Also in: linux-wireless, lkml

Hi All,

On Thu, Sep 15, 2016 at 11:42 PM, Colin King [off-list ref] wrote:
From: Colin Ian King <redacted>

If adapter is null the error exit path in mwifiex_shutdown_sw is
to down the semaphore sem and print some debug via mwifiex_dbg.
However, passing a NULL adapter to mwifiex_dbg causes a null
pointer deference when accessing adapter->dev.  This fix checks
for a null adapter at the start of the function and to exit
without the need to up the semaphore and we also skip the debug
to avoid the null pointer dereference.

Signed-off-by: Colin Ian King <redacted>
Reviewed-by: Julian Calaby <redacted>

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help