aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2017-03-24 14:07:22 -0400
committerBjorn Helgaas <bhelgaas@google.com>2017-04-04 15:00:01 -0400
commit59c58ceeea9cdc6144d7b0303753e6bd26d87455 (patch)
tree0b65cd1ed287c9af29916548fa50606c8f949588
parent433fcf6b7b31f1f233dd50aeb9d066a0f6ed4b9d (diff)
PCI: hv: Allocate interrupt descriptors with GFP_ATOMIC
The memory allocation here needs to be non-blocking. Fix the issue. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Long Li <longli@microsoft.com> Cc: <stable@vger.kernel.org>
-rw-r--r--drivers/pci/host/pci-hyperv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
index 8c952f694c2f..e73880c5d979 100644
--- a/drivers/pci/host/pci-hyperv.c
+++ b/drivers/pci/host/pci-hyperv.c
@@ -878,7 +878,7 @@ static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
878 hv_int_desc_free(hpdev, int_desc); 878 hv_int_desc_free(hpdev, int_desc);
879 } 879 }
880 880
881 int_desc = kzalloc(sizeof(*int_desc), GFP_KERNEL); 881 int_desc = kzalloc(sizeof(*int_desc), GFP_ATOMIC);
882 if (!int_desc) 882 if (!int_desc)
883 goto drop_reference; 883 goto drop_reference;
884 884