From: Krishna Kumar Date: Tue, 25 May 2010 05:40:36 +0000 (+0530) Subject: vhost: Fix host panic if ioctl called with wrong index X-Git-Tag: v2.6.35-rc1~24^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3d9a17469d71ba1bab79c07c8eecb9e26e60af;p=pandora-kernel.git vhost: Fix host panic if ioctl called with wrong index Missed a boundary value check in vhost_set_vring. The host panics if idx == nvqs is used in ioctl commands in vhost_virtqueue_init. Signed-off-by: Krishna Kumar Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed