From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [bug report] usb: dwc2: host: Fix ISOC flow in DDMA mode
Date: Mon, 8 Apr 2024 09:49:45 +0200 [thread overview]
Message-ID: <2024040834-ethically-rumble-701f@gregkh> (raw)
In-Reply-To: <3a1e01ca-a491-2739-e47c-6a71b610f400@synopsys.com>
On Mon, Apr 08, 2024 at 06:04:42AM +0000, Minas Harutyunyan wrote:
> Hi Greg,
>
> On 4/5/24 14:09, Dan Carpenter wrote:
> > Hello Minas Harutyunyan,
> >
> > This is a semi-automatic email about new static checker warnings.
> >
> > Commit b258e4268850 ("usb: dwc2: host: Fix ISOC flow in DDMA mode")
> > from Mar 13, 2024, leads to the following Smatch complaint:
> >
> > drivers/usb/dwc2/hcd_ddma.c:874 dwc2_cmpl_host_isoc_dma_desc()
> > warn: variable dereferenced before check 'qtd->urb' (see line 870)
> >
> > drivers/usb/dwc2/hcd_ddma.c
> > 869 u16 frame_desc_idx;
> > 870 struct urb *usb_urb = qtd->urb->priv;
> > ^^^^^^^^^^
> > The patch adds a dereference
> >
> > 871 u16 remain = 0;
> > 872 int rc = 0;
> > 873
> > 874 if (!qtd->urb)
> > ^^^^^^^^^
> > The existing check is too late now
> >
> > 875 return -EINVAL;
> > 876
> >
> > regards,
> > dan carpenter
>
> Should I send new version of this patch or should develop fixup patch to
> be applied to "usb-linus" branch?
A fixup patch please, I can not rebase this tree.
thanks,
greg k-h
prev parent reply other threads:[~2024-04-08 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 10:09 [bug report] usb: dwc2: host: Fix ISOC flow in DDMA mode Dan Carpenter
2024-04-08 6:04 ` Minas Harutyunyan
2024-04-08 7:49 ` Greg Kroah-Hartman [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=2024040834-ethically-rumble-701f@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Minas.Harutyunyan@synopsys.com \
--cc=dan.carpenter@linaro.org \
--cc=linux-usb@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;
as well as URLs for NNTP newsgroup(s).