]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdns3: ep0: add spinlock for cdns3_check_new_setup
authorPeter Chen <peter.chen@nxp.com>
Tue, 23 Jun 2020 03:09:18 +0000 (11:09 +0800)
committerFelipe Balbi <balbi@kernel.org>
Wed, 24 Jun 2020 06:39:14 +0000 (09:39 +0300)
commitb77b10e62aa7cc624ac7a54d8801c7547d9eeb4a
tree62b52ee9f9f79bcb980a8c887baa211945f6cc6d
parentc26c9247b62e4062dbae263415c7c234ec29c2e3
usb: cdns3: ep0: add spinlock for cdns3_check_new_setup

The other thread may access other endpoints when the cdns3_check_new_setup
is handling, add spinlock to protect it.

Cc: <stable@vger.kernel.org>
Fixes: 890954bdc8d0 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Reviewed-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/ep0.c