Linux USB
 help / color / mirror / Atom feed
From: Peter Chen <peter.chen@kernel.org>
To: Pawel Laszczak <pawell@cadence.com>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
Date: Wed, 21 Aug 2024 18:23:26 +0800	[thread overview]
Message-ID: <20240821102326.GA652432@nchen-desktop> (raw)
In-Reply-To: <PH7PR07MB95381F2182688811D5C711CEDD8D2@PH7PR07MB9538.namprd07.prod.outlook.com>

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

      reply	other threads:[~2024-08-21 10:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240821102326.GA652432@nchen-desktop \
    --to=peter.chen@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pawell@cadence.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox