From: sashiko-bot@kernel.org
To: "Tian Xuechen" <202300460064@mail.sdu.edu.cn>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: cdnsp: Fix potential ring leak on stream allocation failure
Date: Sun, 06 Dec 2026 01:53:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-252042@kernel.org> (raw)
In-Reply-To: <20261206014241.3413283-1-202300460064@mail.sdu.edu.cn>
> From: Tian Xuechen <202300460064@mail.sdu.edu.cn>
>
> Endpoint initialization allocates the ring before its streams. If stream
> allocation fails, the endpoint remains disabled and its ring is not freed.
>
> Free the ring and clear the endpoint context before returning the error.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
> Signed-off-by: Tian Xuechen <202300460064@mail.sdu.edu.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206014241.3413283-1-202300460064@mail.sdu.edu.cn?part=1
prev parent reply other threads:[~2026-12-06 1:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 1:42 [PATCH] usb: cdnsp: Fix potential ring leak on stream allocation failure Tian Xuechen
2026-12-06 1:53 ` 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-252042@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=202300460064@mail.sdu.edu.cn \
--cc=linux-usb@vger.kernel.org \
--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