]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_ring: allow to store zero as the ctx
authorJason Wang <jasowang@redhat.com>
Wed, 19 Jul 2017 08:54:45 +0000 (16:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 20:37:00 +0000 (13:37 -0700)
commite7cbdad3a01ce9622082e6a0680a96a922fb9262
treef1096c513326ae90307e9357886be589b4e4a519
parent3b9a1a889c9a412b889146b2b39ec15f001ec51f
virtio_ring: allow to store zero as the ctx

Allow zero to be store as a ctx, with this we could store e.g zero
value which could be meaningful for the case of storing headroom
through ctx.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/virtio/virtio_ring.c