summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2017-03-24 11:07:22 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 15:44:47 +0200
commitd1d63f97dd76f7d90f801bcc9a6334d5df96367a (patch)
tree27a4cf4e7dbec623b8eee526b677d1a9024dc7a8 /drivers/pci
parentdd0023d7105c4266adeb14881c479950d6a9ef2a (diff)
PCI: hv: Allocate interrupt descriptors with GFP_ATOMIC
commit 59c58ceeea9cdc6144d7b0303753e6bd26d87455 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci')
-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 61fc349c96d4..ddabf7b23bb5 100644
--- a/drivers/pci/host/pci-hyperv.c
+++ b/drivers/pci/host/pci-hyperv.c
@@ -868,7 +868,7 @@ static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
hv_int_desc_free(hpdev, int_desc);
}
- int_desc = kzalloc(sizeof(*int_desc), GFP_KERNEL);
+ int_desc = kzalloc(sizeof(*int_desc), GFP_ATOMIC);
if (!int_desc)
goto drop_reference;