diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2017-03-24 14:07:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 09:44:47 -0400 |
commit | d1d63f97dd76f7d90f801bcc9a6334d5df96367a (patch) | |
tree | 27a4cf4e7dbec623b8eee526b677d1a9024dc7a8 | |
parent | dd0023d7105c4266adeb14881c479950d6a9ef2a (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>
-rw-r--r-- | drivers/pci/host/pci-hyperv.c | 2 |
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) | |||
868 | hv_int_desc_free(hpdev, int_desc); | 868 | hv_int_desc_free(hpdev, int_desc); |
869 | } | 869 | } |
870 | 870 | ||
871 | int_desc = kzalloc(sizeof(*int_desc), GFP_KERNEL); | 871 | int_desc = kzalloc(sizeof(*int_desc), GFP_ATOMIC); |
872 | if (!int_desc) | 872 | if (!int_desc) |
873 | goto drop_reference; | 873 | goto drop_reference; |
874 | 874 | ||