]> git.karo-electronics.de Git - linux-beck.git/commit
usb: usbip: Avoid NULL pointer dereference in case of error
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Fri, 29 Apr 2016 10:34:13 +0000 (12:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 22:31:30 +0000 (15:31 -0700)
commit442ee366bec3cbdaf5794e80f803d87c5787c5d8
treed189879fc7c6f98eb57a8c068bb4ab5425860757
parent2a7a10b86c125fd3410bb975e8515ac5dddc3238
usb: usbip: Avoid NULL pointer dereference in case of error

One line above we have checked that udc is NULL so we shouldn't
dereference it while printing error message.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_sysfs.c