mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
Patch fixes the incorrect "stream_id" table index instead of
"ep_index" used in cdnsp_get_hw_deq function.
Fixes: 3d82904559 ("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>
This commit is contained in:
parent
14e497183d
commit
0497a356d3
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user