From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751956AbdC0SOb (ORCPT ); Mon, 27 Mar 2017 14:14:31 -0400 Received: from mail-by2nam01on0113.outbound.protection.outlook.com ([104.47.34.113]:26047 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751526AbdC0SOY (ORCPT ); Mon, 27 Mar 2017 14:14:24 -0400 From: Long Li To: KY Srinivasan , "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" CC: "stable@vger.kernel.org" Subject: RE: [PATCH 2/2] pci-hyperv: Fix an atomic bug Thread-Topic: [PATCH 2/2] pci-hyperv: Fix an atomic bug Thread-Index: AQHSpMmnLYKUZ9dG/UyKTi0+FL1LoqGpAh3g Date: Mon, 27 Mar 2017 18:14:01 +0000 Message-ID: References: <1490378800-26907-1-git-send-email-kys@exchange.microsoft.com> <1490378842-26950-3-git-send-email-kys@exchange.microsoft.com> In-Reply-To: <1490378842-26950-3-git-send-email-kys@exchange.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: microsoft.com; dkim=none (message not signed) header.d=none;microsoft.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2001:4898:80e8:9::735] x-microsoft-exchange-diagnostics: 1;BN6PR03MB2481;7:Cecsv0zVLorFX063jZ5BSlE2nOEaxyDVCxDC6G9uHxsZuxsMpIQmXDteaFnAGZNmVSAc9o16GiNnUNBaHUM7OOhypURQGunMb0On7QmZDQOkBFcPH5T6kbTW1ckH4jB/gnlV7qOWBZtg9NYhMaQ3lbuEO3dPRiVn+DpHBMB5Gvi6Bw9Bj72/F7gEmRZyezz2+gYq5pifVjbDwBrOyevLnjZwVsJFiiUqasz1xDmBAy0ogMgzuhamTVWkX9KV3xVRXo8jd1wUQdHN1AdZAQvlPp7plpHlN4s6oQcEyO/ctX5eRWoUxFy22dFYGExxEcgSTVEEI4N+71grAmX4wQnwN1oGMixBfPxPP4ZGR4QAkxM= x-ms-office365-filtering-correlation-id: 71bbac1f-5808-4545-1985-08d4753d0b7e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423048)(201703031133054)(201702281549048);SRVR:BN6PR03MB2481; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(140211028294663)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040423)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(201703131423048)(201703011903048)(201702281528048)(201703061421048)(20161123560025)(20161123558025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:BN6PR03MB2481;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2481; x-forefront-prvs: 02596AB7DA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(6009001)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(39860400002)(13464003)(377454003)(86612001)(86362001)(5005710100001)(6246003)(38730400002)(10290500002)(53936002)(10090500001)(189998001)(99286003)(2561002)(9686003)(2421001)(6506006)(8990500004)(6436002)(2201001)(2950100002)(6306002)(77096006)(6636002)(122556002)(7696004)(4326008)(305945005)(74316002)(7416002)(229853002)(7736002)(2900100001)(966004)(76176999)(1720100001)(50986999)(54356999)(5660300001)(6116002)(33656002)(2906002)(3280700002)(102836003)(3660700001)(53546009)(1511001)(25786009)(2501003)(8676002)(81166006)(55016002)(8936002)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR03MB2481;H:BN3PR03MB2227.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2017 18:14:01.0969 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2481 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v2RIGLLg003401 > -----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 > Cc: stable@vger.kernel.org > Subject: [PATCH 2/2] pci-hyperv: Fix an atomic bug > > From: K. Y. Srinivasan > > The memory allocation here needs to be non-blocking. > Fix the issue. > > Signed-off-by: K. Y. Srinivasan > Cc: Reviewed-by: Long Li > --- > 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