vfio/ccw: allocate irq info with the right size
commit28e22d4baed2d10d8ed0640d05e054fecfc71286
authorJing Zhang <bjzhjing@linux.vnet.ibm.com>
Tue, 18 Jul 2017 01:49:25 +0000 (18 03:49 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 25 Jul 2017 07:17:42 +0000 (25 09:17 +0200)
tree38918bf76afba5d92dba8eef7390e5ffe249c710
parentb5a74cd81d76cb467552f38f2b39520d07c65ea2
vfio/ccw: allocate irq info with the right size

When allocating memory for the vfio_irq_info parameter of the
VFIO_DEVICE_GET_IRQ_INFO ioctl, we used the wrong size. Let's
fix it by using the right size.

Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Jing Zhang <bjzhjing@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170718014926.44781-2-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/vfio/ccw.c