]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pci: Allocate memory for physdev_pci_device_add's optarr
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 4 Aug 2014 22:17:23 +0000 (18:17 -0400)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 23 Oct 2014 15:24:02 +0000 (16:24 +0100)
commite6cba16b7c1ae7afa9c8e2988064de74e0c964df
tree985f0c343a3211f0676973f08b330ede2fda4500
parent126fa799f584db339dcee56548eb31d39b2a0f80
xen/pci: Allocate memory for physdev_pci_device_add's optarr

physdev_pci_device_add's optarr[] is a zero-sized array and therefore
reference to add.optarr[0] is accessing memory that does not belong to
the 'add' variable.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/pci.c