aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-02-22 17:39:17 +0000
committerGreg Kroah-Hartman <[email protected]>2018-03-09 10:01:07 -0800
commitdf3334c223a033f562645712e832ca4cbb326bbf (patch)
treede18c6cecdacf6fbb8b4e69f3f2ffab94049046d /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parent191edc5e2e515aab1075a3f0ef23599e80be5f59 (diff)
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 <[email protected]> Acked-by: Shuah Khan <[email protected]> Reviewed-by: Krzysztof Opasiak <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions