summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hcd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-02-22 18:39:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-09 19:01:07 +0100
commitdf3334c223a033f562645712e832ca4cbb326bbf (patch)
treede18c6cecdacf6fbb8b4e69f3f2ffab94049046d /drivers/usb/host/ohci-hcd.c
parentxhci: Fix front USB ports on ASUS PRIME B350M-A (diff)
downloadlinux-df3334c223a033f562645712e832ca4cbb326bbf.tar.xz
linux-df3334c223a033f562645712e832ca4cbb326bbf.zip
usbip: vudc: fix null pointer dereference on udc->lock
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 SysFS infrastructure for VUDC") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Shuah Khan <shuahkh@osg.samsung.com> Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
0 files changed, 0 insertions, 0 deletions