diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2017-03-24 18:07:22 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 13:44:47 (GMT) |
commit | d1d63f97dd76f7d90f801bcc9a6334d5df96367a (patch) | |
tree | 27a4cf4e7dbec623b8eee526b677d1a9024dc7a8 /drivers/pci/host | |
parent | dd0023d7105c4266adeb14881c479950d6a9ef2a (diff) | |
download | linux-d1d63f97dd76f7d90f801bcc9a6334d5df96367a.tar.xz |
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/host')
-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 61fc349..ddabf7b 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; |