virtio: reject shm region if length is zero
authorSami Uddin <sami.md.ko@gmail.com>
Sun, 11 May 2025 22:21:53 +0000 (07:51 +0930)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 May 2025 07:19:03 +0000 (03:19 -0400)
commit206cc44588f72b49ad4d7e21a7472ab2a72a83df
treed691fa6e2f6ad10008f77ec696df3d8e504a8b3d
parent9d4f22fd563e0cd02e8448e84d057e7c0132a586
virtio: reject shm region if length is zero

Prevent usage of shared memory regions where the length is zero,
as such configurations are not valid and may lead to unexpected behavior.

Signed-off-by: Sami Uddin <sami.md.ko@gmail.com>
Message-Id: <20250511222153.2332-1-sami.md.ko@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/virtio_config.h