Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH v4 0/2] virtio_ring: check desc == NULL when packed and indirect
@ 2021-10-19 11:52 Xuan Zhuo
  2021-10-19 11:52 ` [PATCH v4 1/2] virtio_ring: fix style of virtqueue_add_indirect_packed Xuan Zhuo
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Xuan Zhuo @ 2021-10-19 11:52 UTC (permalink / raw)
  To: Michael S. Tsirkin, virtualization; +Cc: David S. Miller, Tiwei Bie

In the case of packed, use indirect desc, since desc is allocated by
kmalloc_array(), we should check whether its return value is NULL.

v4:
   Inside the #2 patch, virtqueue_add_indirect_packed() return -EAGAIN when
   desc == NULL.

v3:
    Update commit message of the #1 patch.

v2:
    Separate the style fix into a single patch.


Xuan Zhuo (2):
  virtio_ring: fix style of virtqueue_add_indirect_packed
  virtio_ring: check desc == NULL when using indirect with packed

 drivers/virtio/virtio_ring.c | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

--
2.31.0

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-21  1:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 11:52 [PATCH v4 0/2] virtio_ring: check desc == NULL when packed and indirect Xuan Zhuo
2021-10-19 11:52 ` [PATCH v4 1/2] virtio_ring: fix style of virtqueue_add_indirect_packed Xuan Zhuo
2021-10-19 13:22   ` Michael S. Tsirkin
2021-10-19 11:52 ` [PATCH v4 2/2] virtio_ring: check desc == NULL when using indirect with packed Xuan Zhuo
2021-10-19 13:21   ` Michael S. Tsirkin
2021-10-20  2:19     ` Xuan Zhuo
2021-10-20  8:24       ` Michael S. Tsirkin
2021-10-20 11:07         ` Xuan Zhuo
2021-10-20 14:52           ` Michael S. Tsirkin
2021-10-21  1:54             ` Xuan Zhuo
2021-10-19 13:24   ` Michael S. Tsirkin
2021-10-19 13:23 ` [PATCH v4 0/2] virtio_ring: check desc == NULL when packed and indirect Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox