virtio-pci queue allocation not page-aligned
authorHollis Blanchard <hollisb@us.ibm.com>
Tue, 2 Dec 2008 22:24:40 +0000 (16:24 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Dec 2008 22:55:56 +0000 (08:55 +1030)
commit13b1eb333beed018140be3d0b77bf34000125a34
tree26d84c1c955ad87687266433e8e54fa6f88bd150
parent3c92ec8ae91ecf59d88c798301833d7cf83f2179
virtio-pci queue allocation not page-aligned

kzalloc() does not guarantee page alignment, and in fact this broke when
I enabled CONFIG_SLUB_DEBUG_ON.

(Thanks to Anthony Liguori for spotting the missing kfree sub)

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (fixed kfree)
Tested-by: Anthony Liguori <aliguori@us.ibm.com>
drivers/virtio/virtio_pci.c