Message ID | MWHPR03MB266954FABD2DD49DC19CF106BFEB0@MWHPR03MB2669.namprd03.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show
Return-Path: <linux-pci-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6EDC560757 for <patchwork-linux-pci@patchwork.kernel.org>; Tue, 23 Aug 2016 04:48:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62EF928BA2 for <patchwork-linux-pci@patchwork.kernel.org>; Tue, 23 Aug 2016 04:48:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5752928BA7; Tue, 23 Aug 2016 04:48:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C285028BA2 for <patchwork-linux-pci@patchwork.kernel.org>; Tue, 23 Aug 2016 04:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbcHWEsP (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Tue, 23 Aug 2016 00:48:15 -0400 Received: from mail-by2nam03on0099.outbound.protection.outlook.com ([104.47.42.99]:6432 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932127AbcHWEsO (ORCPT <rfc822;linux-pci@vger.kernel.org>); Tue, 23 Aug 2016 00:48:14 -0400 X-Greylist: delayed 330 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Aug 2016 00:48:14 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GokcHknrnAkgnS1YBnVmGgLv3csPcwFrjo1/nDnsFY8=; b=LLgXQHIY/5IK2Rrb3YglBSWow0v1O7++wQRer4rD+WliCfQuA2skd4dSEOAzFzotvnUbEFFHQEp1yAHE0G5gZagv1aHp7SVWmQcVONOuVg5vUMsew25XfA6A67IoSAeDGLDbWsIco1le76IGulTHOVPzgw83ULwQcnP/VThIYfo= Received: from MWHPR03MB2669.namprd03.prod.outlook.com (10.168.207.15) by MWHPR03MB2544.namprd03.prod.outlook.com (10.169.201.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Tue, 23 Aug 2016 04:48:11 +0000 Received: from MWHPR03MB2669.namprd03.prod.outlook.com ([10.168.207.15]) by MWHPR03MB2669.namprd03.prod.outlook.com ([10.168.207.15]) with mapi id 15.01.0587.009; Tue, 23 Aug 2016 04:48:11 +0000 From: Dexuan Cui <decui@microsoft.com> To: Bjorn Helgaas <bhelgaas@google.com>, "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>, KY Srinivasan <kys@microsoft.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "devel@linuxdriverproject.org" <devel@linuxdriverproject.org>, "olaf@aepfle.de" <olaf@aepfle.de>, "apw@canonical.com" <apw@canonical.com>, "jasowang@redhat.com" <jasowang@redhat.com>, "vkuznets@redhat.com" <vkuznets@redhat.com>, Haiyang Zhang <haiyangz@microsoft.com>, Hadden Hoppert <haddenh@microsoft.com>, "helgaas@kernel.org" <helgaas@kernel.org>, "Stephen Hemminger" <sthemmin@microsoft.com> Subject: [PATCH 4/5] PCI: hv: hv_compose_msi_msg: handle the 'ret' value Thread-Topic: [PATCH 4/5] PCI: hv: hv_compose_msi_msg: handle the 'ret' value Thread-Index: AdH8+YG2GjA87YJBSYOMXpq7lAUETA== Date: Tue, 23 Aug 2016 04:48:11 +0000 Message-ID: <MWHPR03MB266954FABD2DD49DC19CF106BFEB0@MWHPR03MB2669.namprd03.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [112.65.1.155] x-ms-office365-filtering-correlation-id: 42165409-bf25-4882-cb4b-08d3cb10afaa x-microsoft-exchange-diagnostics: 1; MWHPR03MB2544; 6:t9n7KgnJO/LAsDjmVYHSKCuUOqgL6zvP7KdXmAaH8vptBP8WRt1J/H0Wd2MYedyY+29Q5ykvF/HRQZKTGA7lYfnMdm6Chg99Vvbk+bJpRO86pPONH+bAKn86fkp47QvcG98H5I/YCu2fXeTNzh5pdzWrr75Mo5xQwbRIHGdSSJXhr2bLtsmQebR2njx9OgHNieHsNZsXmgGRYDFc/zb/rSGTSRmXnaO90mWKQZgYBJfVMMPT/Xywwp3RRLIKQ+loGCw2zc+lYfXcgeuSIyRQ51FXdl4kn7VOO1b88zu3bOtBEJgAFDw7gECbu4q+7HQiNMM3hXfX+Ke7Ek6qxf+wXg==; 5:UPwN80G4wWsSBLHTBTBYLQjDSXtzBtkWkGFcyoaqn+PkYV3qacoCIY3srVWiJcFVreF/ILFE/4Dap3Wne9LJGtnkw7dz3PtnTFChNnoog9Gk4AFfRlH7jfeBJlI9SKT+7LZhCrrkkNaSgCyxNXX3Eg==; 24:IejqpaoABtvsKe3AeVqKR0UJvT3YlhDBXDCwy2dt1uZm2MXSOWJZGvwmRSaFZpWtIVTg2zVNOZhkBI5H70kLcizm+hjyhqmd2ikcKuzlgus=; 7:6vZc0rfPVaQmbGV9Lzm+m8PPZ8gQNlsiBeK3qFlD4XY6WsF8xhoJD/VvIhSATrXaUOUBO+mYJtsOS/Ss57UaQvA1kJwaQ+6ifozGAn7Wz+cPJs2W5wTdOMh1FhUtgIqXONS1qBbCu61ZiCr8okasAMDiU//RsdINKNbL9pzw2+oQCMvzv3IogE/wWM1UpK7Pr1Rn2LeTZv6/kAmOcuzLV5L3f1a48rv0Q65plvUIzBHTizNhhB5h/aibYaqW1zbn x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2544; x-microsoft-antispam-prvs: <MWHPR03MB2544E942D3AA3F8C2058D3C6BFEB0@MWHPR03MB2544.namprd03.prod.outlook.com> x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038); SRVR:MWHPR03MB2544; BCL:0; PCL:0; RULEID:; SRVR:MWHPR03MB2544; x-forefront-prvs: 004395A01C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(199003)(189002)(4001450100002)(106356001)(10090500001)(2561002)(11100500001)(92566002)(305945005)(7696003)(7736002)(5660300001)(7846002)(8936002)(81166006)(81156014)(2900100001)(77096005)(8676002)(2501003)(8990500004)(7416002)(10290500002)(5005710100001)(5002640100001)(10400500002)(74316002)(9686002)(122556002)(97736004)(5001770100001)(189998001)(19580405001)(107886002)(2906002)(2201001)(76576001)(54356999)(99286002)(50986999)(86362001)(3846002)(102836003)(19580395003)(105586002)(6116002)(33656002)(586003)(1511001)(3280700002)(66066001)(101416001)(3660700001)(68736007)(86612001)(2421001)(87936001)(229853001)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR03MB2544; H:MWHPR03MB2669.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2016 04:48:11.5051 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2544 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index aef2e1e..f337239 100644 --- a/drivers/pci/host/pci-hyperv.c +++ b/drivers/pci/host/pci-hyperv.c @@ -893,8 +893,10 @@ static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) sizeof(*int_pkt), (unsigned long)&ctxt.pkt, VM_PKT_DATA_INBAND, VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED); - if (!ret) - wait_for_completion(&comp.comp_pkt.host_event); + if (ret) + goto free_int_desc; + + wait_for_completion(&comp.comp_pkt.host_event); if (comp.comp_pkt.completion_status < 0) { dev_err(&hbus->hdev->device,
I happened to find this when reading the code. I didn't get a real issue however. Cc: Jake Oshins <jakeo@microsoft.com> Cc: K. Y. Srinivasan <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Dexuan Cui <decui@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)