Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1610045
| From | Long Li <longli@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 2/2] pci-hyperv: Fix an atomic bug |
| Date | 2017-03-27 20:20 +0200 |
| Message-ID | <tpHpg-3Jt-23@gated-at.bofh.it> (permalink) |
| References | <toBOW-5jj-17@gated-at.bofh.it> <toBOX-5jj-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On > Behalf Of kys@exchange.microsoft.com > Sent: Friday, March 24, 2017 11:07 AM > To: helgaas@kernel.org; linux-pci@vger.kernel.org; linux- > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > apw@canonical.com; vkuznets@redhat.com; jasowang@redhat.com; > leann.ogasawara@canonical.com; marcelo.cerri@canonical.com; Stephen > Hemminger <sthemmin@microsoft.com> > Cc: stable@vger.kernel.org > Subject: [PATCH 2/2] pci-hyperv: Fix an atomic bug > > From: K. Y. Srinivasan <kys@microsoft.com> > > The memory allocation here needs to be non-blocking. > Fix the issue. > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> > Cc: <stable@vger.kernel.org> Reviewed-by: Long Li <longli@microsoft.com> > --- > 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 32a16fb..85088a1 100644 > --- a/drivers/pci/host/pci-hyperv.c > +++ b/drivers/pci/host/pci-hyperv.c > @@ -877,7 +877,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; > > -- > 1.7.1 > > _______________________________________________ > devel mailing list > devel@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] pci-hyperv: Some miscellaneous fixes kys@exchange.microsoft.com - 2017-03-24 19:10 +0100
[PATCH 1/2] pci-hyperv: Fix a bug in specifying CPU affinity kys@exchange.microsoft.com - 2017-03-24 19:10 +0100
RE: [PATCH 1/2] pci-hyperv: Fix a bug in specifying CPU affinity Long Li <longli@microsoft.com> - 2017-03-27 20:20 +0200
[PATCH 2/2] pci-hyperv: Fix an atomic bug kys@exchange.microsoft.com - 2017-03-24 19:10 +0100
RE: [PATCH 2/2] pci-hyperv: Fix an atomic bug Long Li <longli@microsoft.com> - 2017-03-27 20:20 +0200
[PATCH 1/2] PCI: hv: Fix a bug in specifying CPU affinity kys@exchange.microsoft.com - 2017-03-24 19:20 +0100
Re: [PATCH 0/2] pci-hyperv: Some miscellaneous fixes Bjorn Helgaas <helgaas@kernel.org> - 2017-04-04 21:10 +0200
RE: [PATCH 0/2] pci-hyperv: Some miscellaneous fixes KY Srinivasan <kys@microsoft.com> - 2017-04-04 22:00 +0200
Re: [PATCH 0/2] pci-hyperv: Some miscellaneous fixes Bjorn Helgaas <helgaas@kernel.org> - 2017-04-04 22:40 +0200
RE: [PATCH 0/2] pci-hyperv: Some miscellaneous fixes KY Srinivasan <kys@microsoft.com> - 2017-04-04 23:50 +0200
csiph-web