]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdnsp: Fixes issue with dequeuing not queued requests
authorPawel Laszczak <pawell@cadence.com>
Thu, 13 Jul 2023 08:14:29 +0000 (04:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:58 +0000 (23:08 +0200)
commit033c0d5101e543125f699ae310ae1a33714ed74b
tree66170879c9046b0c26950a0c3e0ae3c3b7f9ebd0
parent49fbc18378ae72a47feabee97fdb86f3cea09765
usb: cdnsp: Fixes issue with dequeuing not queued requests

commit 34f08eb0ba6e4869bbfb682bf3d7d0494ffd2f87 upstream.

Gadget ACM while unloading module try to dequeue not queued usb
request which causes the kernel to crash.
Patch adds extra condition to check whether usb request is processed
by CDNSP driver.

cc: stable@vger.kernel.org
Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20230713081429.326660-1-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-gadget.c