All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Slavin Liu <bolin.liu@seu.edu.cn>
Cc: pawell@cadence.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: cdns2: allocate the trailing ZLP before queuing data
Date: Fri, 20 Nov 2026 16:37:43 +0100	[thread overview]
Message-ID: <2026112036-action-dreamlike-14f0@gregkh> (raw)
In-Reply-To: <20260913125235.110093-1-bolin.liu@seu.edu.cn>

On Sun, Sep 13, 2026 at 08:52:35PM +0800, Slavin Liu wrote:
> A trailing ZLP allocation currently happens after the data request
> has been accepted. Allocate and check it first, before publishing the
> data request. Free the unqueued ZLP if data mapping fails. The ZLP has
> zero length, for which the mapping helper returns success without DMA
> mapping; its enqueue has no fallible mapping step on this baseline.
> 
> Detected by static analysis and reviewed with AI-assisted source auditing.

How was this tested?


      reply	other threads:[~2026-11-20 15:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-13 12:52 [PATCH] usb: cdns2: allocate the trailing ZLP before queuing data Slavin Liu
2026-11-20 15:37 ` Greg KH [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=2026112036-action-dreamlike-14f0@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=bolin.liu@seu.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pawell@cadence.com \
    /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.