Re: [PATCH] usbnet: smsc95xx: dereferencing NULL pointer

2014-11-10 Thread Sudip Mukherjee
On Mon, Nov 10, 2014 at 02:22:23PM -0500, David Miller wrote: > From: Sudip Mukherjee > Date: Fri, 7 Nov 2014 18:52:40 +0530 > > > we were dereferencing dev to initialize pdata. but just after that we > > have a BUG_ON(!dev). so we were basically dereferencing the pointer > > first and then tesi

Re: [PATCH] usbnet: smsc95xx: dereferencing NULL pointer

2014-11-10 Thread David Miller
From: Sudip Mukherjee Date: Fri, 7 Nov 2014 18:52:40 +0530 > we were dereferencing dev to initialize pdata. but just after that we > have a BUG_ON(!dev). so we were basically dereferencing the pointer > first and then tesing it for NULL. > > Signed-off-by: Sudip Mukherjee You didn't even comp