From: sashiko-bot@kernel.org
To: "Niklas Neronin" <niklas.neronin@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 2/2] usb: xhci: fix 'num_active_eps' accounting on allocation failure
Date: Mon, 02 Nov 2026 13:49:28 +0000 [thread overview]
Message-ID: <sashiko-outbox-193506@kernel.org> (raw)
In-Reply-To: <20261102134228.584032-3-niklas.neronin@linux.intel.com>
> For controllers affected by XHCI_EP_LIMIT_QUIRK, endpoint resources for
> the default control endpoint are accounted before the virtual device is
> allocated.
>
> If xhci_alloc_virt_device() fails, the slot is disabled and cleanup is
> handled through the Disable Slot completion path. However, because no
> virtual device is installed in 'xhci->devs', the endpoint accounting
> is never released and 'num_active_eps' remains incremented.
>
> As a result, each allocation failure leaks one endpoint from the
> driver's accounting.
>
> Fix this by undoing the endpoint reservation when virtual device
> allocation fails.
>
> Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261102134228.584032-1-niklas.neronin@linux.intel.com?part=2
prev parent reply other threads:[~2026-11-02 13:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 13:42 [PATCH v2 0/2] usb: xhci: bandwidth and endpoints accounting fixes Niklas Neronin
2026-11-02 13:42 ` [PATCH v2 1/2] usb: xhci: clear stale bandwidth data after hibernation Niklas Neronin
2026-11-02 13:47 ` sashiko-bot
2026-11-02 13:42 ` [PATCH v2 2/2] usb: xhci: fix 'num_active_eps' accounting on allocation failure Niklas Neronin
2026-11-02 13:49 ` sashiko-bot [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=sashiko-outbox-193506@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=niklas.neronin@linux.intel.com \
--cc=sashiko-reviews@lists.linux.dev \
/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