Re: [PATCH] usbip: vudc: fix null pointer dereference on udc->lock

2018-02-27 Thread Krzysztof Opasiak
On 02/26/2018 05:40 PM, Shuah Khan wrote: On 02/22/2018 10:39 AM, Colin King wrote: From: Colin Ian King Currently the driver attempts to spin lock on udc->lock before a NULL pointer check is performed on udc, hence there is a potential null pointer dereference on udc->lock. Fix this by mov

Re: [PATCH] usbip: vudc: fix null pointer dereference on udc->lock

2018-02-26 Thread Shuah Khan
On 02/22/2018 10:39 AM, Colin King wrote: > From: Colin Ian King > > Currently the driver attempts to spin lock on udc->lock before a NULL > pointer check is performed on udc, hence there is a potential null > pointer dereference on udc->lock. Fix this by moving the null check > on udc before th

[PATCH] usbip: vudc: fix null pointer dereference on udc->lock

2018-02-22 Thread Colin King
From: Colin Ian King Currently the driver attempts to spin lock on udc->lock before a NULL pointer check is performed on udc, hence there is a potential null pointer dereference on udc->lock. Fix this by moving the null check on udc before the lock occurs. Fixes: ea6873a45a22 ("usbip: vudc: Add