From: Igor Torrente <igor.torrente@collabora.com>
To: mst@redhat.com
Cc: sami.md.ko@gmail.com, virtualization@lists.linux.dev,
linux-kernel@vger.kernel.org, eperezma@redhat.com,
xuanzhuo@linux.alibaba.com, jasowang@redhat.com,
dmitry.osipenko@collabora.com,
Igor Torrente <igor.torrente@collabora.com>
Subject: [PATCH] Revert "virtio: reject shm region if length is zero"
Date: Thu, 7 Aug 2025 09:41:45 -0300 [thread overview]
Message-ID: <20250807124145.81816-1-igor.torrente@collabora.com> (raw)
This reverts commit 206cc44588f72b49ad4d7e21a7472ab2a72a83df.
Signed-off-by: Igor Torrente <igor.torrente@collabora.com>
---
include/linux/virtio_config.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h
index b3e1d30c765b..169c7d367fac 100644
--- a/include/linux/virtio_config.h
+++ b/include/linux/virtio_config.h
@@ -329,8 +329,6 @@ static inline
bool virtio_get_shm_region(struct virtio_device *vdev,
struct virtio_shm_region *region, u8 id)
{
- if (!region->len)
- return false;
if (!vdev->config->get_shm_region)
return false;
return vdev->config->get_shm_region(vdev, region, id);
--
2.49.0
next reply other threads:[~2025-08-07 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 12:41 Igor Torrente [this message]
2025-08-07 12:45 ` Michael S. Tsirkin
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=20250807124145.81816-1-igor.torrente@collabora.com \
--to=igor.torrente@collabora.com \
--cc=dmitry.osipenko@collabora.com \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=sami.md.ko@gmail.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®