]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: Fix vring_init/vring_size to take unsigned long
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 21 Dec 2007 00:17:47 +0000 (02:17 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:49:59 +0000 (23:49 +1100)
commitdd50ffe3d50c9576cc1c20d8fd9b126755cba553
tree7f0fb0e040d3bd0e5c88b4f025125cec566221ee
parent83e22192844aea6f2adef8ea04e5a7df3ea2034b
virtio: Fix vring_init/vring_size to take unsigned long

Using unsigned int resulted in silent truncation of the upper 32-bit
on x86_64 resulting in an OOPS since the ring was being initialized
wrong.

Please reconsider my previous patch to just use PAGE_ALIGN().  Open
coding this sort of stuff, no matter how simple it seems, is just
asking for this sort of trouble.

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