mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-03 17:27:25 -05:00
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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Jake Oshins <[email protected]>
This commit is contained in:
parent
542ccf4551
commit
8286e96d95
1 changed files with 3 additions and 3 deletions
|
|
@ -1271,9 +1271,9 @@ static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
|
|||
struct hv_pci_dev *hpdev;
|
||||
struct pci_child_message *res_req;
|
||||
struct q_res_req_compl comp_pkt;
|
||||
union {
|
||||
struct pci_packet init_packet;
|
||||
u8 buffer[0x100];
|
||||
struct {
|
||||
struct pci_packet init_packet;
|
||||
u8 buffer[sizeof(struct pci_child_message)];
|
||||
} pkt;
|
||||
unsigned long flags;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue