Re: [PATCH] staging: rtl8192u: fix a null pointer dereference on a null dev pointer

2019-02-04 Thread Colin Ian King
On 03/02/2019 11:31, Dan Carpenter wrote: > On Sat, Feb 02, 2019 at 10:56:27PM +, Colin King wrote: >> From: Colin Ian King >> >> There is an earlier null check on pointer dev which implies it may be null, >> however the assignment of pointer pref and the call to free_ieee82011 on >> a null de

Re: [PATCH] staging: rtl8192u: fix a null pointer dereference on a null dev pointer

2019-02-03 Thread Dan Carpenter
On Sat, Feb 02, 2019 at 10:56:27PM +, Colin King wrote: > From: Colin Ian King > > There is an earlier null check on pointer dev which implies it may be null, > however the assignment of pointer pref and the call to free_ieee82011 on > a null dev can cause null pointer dereference errors. Fi

[PATCH] staging: rtl8192u: fix a null pointer dereference on a null dev pointer

2019-02-02 Thread Colin King
From: Colin Ian King There is an earlier null check on pointer dev which implies it may be null, however the assignment of pointer pref and the call to free_ieee82011 on a null dev can cause null pointer dereference errors. Fix this by moving the assignment of priv and the the call to free_ieee8