From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: linux-usb@vger.kernel.org
Subject: Re: [bug report] xhci: add support to allocate several interrupters
Date: Wed, 10 Jan 2024 14:55:38 +0200 [thread overview]
Message-ID: <d79dce2c-c321-bdda-c8df-b7e781a0566f@linux.intel.com> (raw)
In-Reply-To: <ffaa0a1b-5984-4a1f-bfd3-9184630a97b9@moroto.mountain>
Hi
On 10.1.2024 13.31, Dan Carpenter wrote:
> Hello Mathias Nyman,
>
> The patch c99b38c41234: "xhci: add support to allocate several
> interrupters" from Jan 2, 2024 (linux-next), leads to the following
> Smatch static checker warning:
>
> drivers/usb/host/xhci-mem.c:1873 xhci_remove_secondary_interrupter()
> error: we previously assumed 'ir' could be null (see line 1865)
>
> drivers/usb/host/xhci-mem.c
> 1863
> 1864 /* interrupter 0 is primary interrupter, don't touch it */
> 1865 if (!ir || !ir->intr_num || ir->intr_num >= xhci->max_interrupters)
> 1866 xhci_dbg(xhci, "Invalid secondary interrupter, can't remove\n");
>
> This debug message is kind of pointless... The Oops will have the stack
> trace already.
Ah, there's a return statement missing here.
Thanks for the report
Mathias
next prev parent reply other threads:[~2024-01-10 12:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 11:31 [bug report] xhci: add support to allocate several interrupters Dan Carpenter
2024-01-10 12:55 ` Mathias Nyman [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-10 13:15 Dan Carpenter
2024-01-10 14:03 ` Mathias Nyman
2024-01-10 14:54 ` Mathias Nyman
2024-01-10 14:56 ` Mathias Nyman
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=d79dce2c-c321-bdda-c8df-b7e781a0566f@linux.intel.com \
--to=mathias.nyman@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.