From: Brian Foley Date: Mon, 24 Sep 2012 13:33:41 +0000 (+0100) Subject: virtio_mmio: fix off by one error allocating queue X-Git-Tag: omap-for-v3.7-rc1/fixes-hwmod-clock-signed-v3~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3850d29fc40f3494a3e9c3aac45b6afe53526449;p=pandora-kernel.git virtio_mmio: fix off by one error allocating queue vm_setup_vq fails to allow VirtQueues needing only 2 pages of storage, as it should. Found with a kernel using 64kB pages, but can be provoked if a virtio device reports QueueNumMax where the descriptor table and available ring fit in one page, and the used ring on the second (<= 227 descriptors with 4kB pages and <= 3640 with 64kB pages.) Signed-off-by: Brian Foley Signed-off-by: Pawel Moll Signed-off-by: Rusty Russell --- Reading git-diff-tree failed