diff options
Diffstat (limited to 'drivers/usb/class/cdc-wdm.c')
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 3771d6e6d0c..34e6108e1d4 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c | |||
@@ -652,7 +652,7 @@ next_desc: | |||
652 | 652 | ||
653 | iface = &intf->altsetting[0]; | 653 | iface = &intf->altsetting[0]; |
654 | ep = &iface->endpoint[0].desc; | 654 | ep = &iface->endpoint[0].desc; |
655 | if (!usb_endpoint_is_int_in(ep)) { | 655 | if (!ep || !usb_endpoint_is_int_in(ep)) { |
656 | rv = -EINVAL; | 656 | rv = -EINVAL; |
657 | goto err; | 657 | goto err; |
658 | } | 658 | } |