Re: [PATCH] usbatm: fix potential NULL pointer dereference

2013-04-19 Thread Duncan Sands
Signed-off-by: Duncan Sands On 19/04/13 04:18, Wei Yongjun wrote: From: Wei Yongjun The dereference to 'instance' in the debug code should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/usb/atm/usbatm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[PATCH] usbatm: fix potential NULL pointer dereference

2013-04-18 Thread Wei Yongjun
From: Wei Yongjun The dereference to 'instance' in the debug code should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/usb/atm/usbatm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c index 35f