]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: Fix host panic if ioctl called with wrong index
authorKrishna Kumar <krkumar2@in.ibm.com>
Tue, 25 May 2010 05:40:36 +0000 (11:10 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 May 2010 09:19:02 +0000 (12:19 +0300)
commit0cba41473249a250d8e445207844fdb3d1230e53
treea94a0c4e8a224261b3e2cb6f1329056f80d4e7b2
parent6b6486b7636b141745086912a69c7928902498f7
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 <krkumar2@in.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c