]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: hv: Use the correct buffer size in new_pcichild_device()
authorDexuan Cui <decui@microsoft.com>
Thu, 10 Nov 2016 07:17:48 +0000 (07:17 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 16 Nov 2016 22:43:58 +0000 (16:43 -0600)
commit8286e96d95f2dd01a72e3500322ad95153a469c2
tree98b3d10b2ea418147501530eaba6bd24f086aa88
parent542ccf4551fa019a8ae9dfb7c8cd7e73a3d7e614
PCI: hv: Use the correct buffer size in new_pcichild_device()

We don't really need such a big on-stack buffer.  vmbus_sendpacket() here
only uses sizeof(struct pci_child_message).

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jake Oshins <jakeo@microsoft.com>
drivers/pci/host/pci-hyperv.c