]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: fix vring_init for 64 bits
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Nov 2007 05:31:52 +0000 (16:31 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 12 Nov 2007 02:55:12 +0000 (13:55 +1100)
commit97bec4e6daa21a88d5b03fffd0df6d1983c342a5
treef096fa66efcaa8b70629667d4252c152c81ef603
parent8cc7a23f4bdb01b52e0b9009c7182e3721c2843f
virtio: fix vring_init for 64 bits

This patch fixes a typo in vring_init().  This happens to work today in lguest
because the sizeof(struct vring_desc) is 16 and struct vring contains 3
pointers and an unsigned int so on 32-bit
sizeof(struct vring_desc) == sizeof(struct vring).  However, this is no longer
true on 64-bit where the bug is exposed.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_ring.h