]> git.baikalelectronics.ru Git - kernel.git/commit
usbatm: fix potential NULL pointer dereference
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 19 Apr 2013 02:18:12 +0000 (10:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2013 17:20:41 +0000 (10:20 -0700)
commit0c1d6256aece25d0c6a31f291046c09a07197b60
tree7a46c66816268c99a4fb459b9e347aa6e81bbc56
parentcf19643a52b3a91f2df46f45608fc3b642e19cca
usbatm: fix potential NULL pointer dereference

The dereference to 'instance' in the debug code should be moved
below the NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/atm/usbatm.c