From: Anthony Liguori Date: Wed, 7 Nov 2007 05:31:52 +0000 (+1100) Subject: virtio: fix vring_init for 64 bits X-Git-Tag: v2.6.24-rc3~154^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44332f7167dfb1ca04af96a2cff938c5e23433db;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed