projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14e4971
)
usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
author
Pawel Laszczak
<pawell@cadence.com>
Tue, 20 Aug 2024 08:21:19 +0000
(08:21 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 09:15:35 +0000
(17:15 +0800)
Patch fixes the incorrect "stream_id" table index instead of
"ep_index" used in cdnsp_get_hw_deq function.
Fixes:
3d82904559f4
("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: stable@vger.kernel.org
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Link:
https://lore.kernel.org/r/PH7PR07MB95381F2182688811D5C711CEDD8D2@PH7PR07MB9538.namprd07.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-ring.c
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/cdnsp-ring.c
b/drivers/usb/cdns3/cdnsp-ring.c
index 02f297f5637d7562a1228e0e860af608ac6beda5..a60c0cb991cd1bf7430fe6db4e9d7a172e994a82 100644
(file)
--- a/
drivers/usb/cdns3/cdnsp-ring.c
+++ b/
drivers/usb/cdns3/cdnsp-ring.c
@@
-402,7
+402,7
@@
static u64 cdnsp_get_hw_deq(struct cdnsp_device *pdev,
struct cdnsp_stream_ctx *st_ctx;
struct cdnsp_ep *pep;
- pep = &pdev->eps[
stream_id
];
+ pep = &pdev->eps[
ep_index
];
if (pep->ep_state & EP_HAS_STREAMS) {
st_ctx = &pep->stream_info.stream_ctx_array[stream_id];