]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: skip interrupt when ep disabled
authorJanusz Dziedzic <januszx.dziedzic@linux.intel.com>
Thu, 8 Dec 2016 09:57:34 +0000 (10:57 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commitf0b751fd8581fcb8a0f7c6c75a5923c23430a4cd
treee97ab060d5cb8d77bb03e211dd3b139b3b1ed9ff
parentb6128bf889f58bc61caa23b9b4a1e88e01e86b31
usb: dwc3: skip interrupt when ep disabled

In case EP disabled pass only EPCPLT command
to be handled. In other case we could hit
Bug like below.

BUG: unable to handle kernel NULL pointer dereference at 0000000000000003
IP:
[<ffffffff81673428>] dwc3_thread_interrupt+0x11c8/0x1790

while dep->endpoint.desc is NULL.

Signed-off-by: Janusz Dziedzic <januszx.dziedzic@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c