All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Michail Tatas" <michail.tatas@gmail.com>
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH RESEND] virtio_console: Put device on failure
Date: Wed, 25 Nov 2026 11:32:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-233257@kernel.org> (raw)
In-Reply-To: <awbGObIpMjR21JSC@michalis-linux>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] virtio_console: missing Fixes trailer for alloc_buf() device
  refcount fix
--

commit 0d2904b89fd07ffc0b8eae0baa3194301466a9a1
Author: Michail Tatas <michail.tatas@gmail.com>

> virtio_console: Put device on failure
>
> If dma_alloc_coherent() fails, the buffer is freed but not the
> reference which is acquired before calling dma_alloc_coherent().
> Fix by calling put_device in the error path.
>
> Signed-off-by: Michail Tatas <michail.tatas@gmail.com>

[Severity: Low]
This fixes a device reference leak in alloc_buf().  Should the commit
message include:

  Fixes: 1b6370463e88 ("virtio_console: Add support for remoteproc serial")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/awbGObIpMjR21JSC@michalis-linux?part=1

      reply	other threads:[~2026-11-25 11:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:27 [PATCH RESEND] virtio_console: Put device on failure Michail Tatas
2026-11-25 11:32 ` 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-233257@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=michail.tatas@gmail.com \
    --cc=mst@redhat.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=virtualization@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 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.