From: Boris Ostrovsky Date: Mon, 4 Aug 2014 22:17:23 +0000 (-0400) Subject: xen/pci: Allocate memory for physdev_pci_device_add's optarr X-Git-Tag: fixes-against-v3.18-rc2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=486edb24952c930966dad125f6727017353e9361;p=pandora-kernel.git 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 Reviewed-by: Jan Beulich Signed-off-by: David Vrabel --- Reading git-diff-tree failed