* [PATCH] usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
[not found] <20240820075951.191176-1-pawell@cadence.com>
@ 2024-08-20 8:21 ` Pawel Laszczak
2024-08-21 10:23 ` Peter Chen
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Laszczak @ 2024-08-20 8:21 UTC (permalink / raw)
To: peter.chen@kernel.org
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, Pawel Laszczak,
stable@vger.kernel.org
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>
---
drivers/usb/cdns3/cdnsp-ring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c
index 75724e60653c..e0e97a138666 100644
--- 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];
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
2024-08-20 8:21 ` [PATCH] usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function Pawel Laszczak
@ 2024-08-21 10:23 ` Peter Chen
0 siblings, 0 replies; 2+ messages in thread
From: Peter Chen @ 2024-08-21 10:23 UTC (permalink / raw)
To: Pawel Laszczak
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
On 24-08-20 08:21:19, Pawel Laszczak wrote:
> 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>
> ---
> drivers/usb/cdns3/cdnsp-ring.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c
> index 75724e60653c..e0e97a138666 100644
> --- 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];
> --
> 2.43.0
>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-21 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240820075951.191176-1-pawell@cadence.com>
2024-08-20 8:21 ` [PATCH] usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function Pawel Laszczak
2024-08-21 10:23 ` Peter Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox