Commit be8df02
usb: cdns3: ep0: add spinlock for cdns3_check_new_setup
commit 2587a02 upstream.
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: 7733f6c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a066865 commit be8df02
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
| 715 | + | |
715 | 716 | | |
716 | 717 | | |
717 | 718 | | |
718 | | - | |
| 719 | + | |
| 720 | + | |
719 | 721 | | |
| 722 | + | |
720 | 723 | | |
721 | 724 | | |
722 | 725 | | |
723 | | - | |
724 | 726 | | |
725 | 727 | | |
726 | 728 | | |
| |||
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
748 | | - | |
749 | 750 | | |
750 | 751 | | |
751 | 752 | | |
| |||
0 commit comments