]> git.baikalelectronics.ru Git - kernel.git/commit
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 (09:25 +1030)
commitbb5a641880285d9012615f249e7b99c1e1383e97
tree26d84c1c955ad87687266433e8e54fa6f88bd150
parent183459115faa2a47f05e4aabb20d0c9694771c51
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