From patchwork Mon Nov 21 18:22:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9439925 Return-Path: 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 EDF3160469 for ; Mon, 21 Nov 2016 18:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D81DE28755 for ; Mon, 21 Nov 2016 18:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCDEC2876F; Mon, 21 Nov 2016 18:22:38 +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 8CB332876C for ; Mon, 21 Nov 2016 18:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754273AbcKUSWa (ORCPT ); Mon, 21 Nov 2016 13:22:30 -0500 Received: from mail-co1nam03on0073.outbound.protection.outlook.com ([104.47.40.73]:37511 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753603AbcKUSW2 (ORCPT ); Mon, 21 Nov 2016 13:22:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f2dkwb4RVIXnp59xKplp8Jhw7ildstI8bhMFr9zawPg=; b=ueT428L4r2XwEKcGceIfPZEdZG57T64SyPByeMqCJ04p1Q/76GV0XmT5k8V9VKRKxnmrvCCB18xNbOy+axeU6d6FwRV379ojHkYyParB4pfRA0X3fN+lNjjAFXEbho7mxj6U7h8kMHbrE6392f62pLfy39GgRbsDWr40I8VliNI= Received: from BN1PR02CA0040.namprd02.prod.outlook.com (10.141.56.40) by CY4PR02MB2853.namprd02.prod.outlook.com (10.175.60.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Mon, 21 Nov 2016 18:22:25 +0000 Received: from BY2FFO11OLC016.protection.gbl (2a01:111:f400:7c0c::128) by BN1PR02CA0040.outlook.office365.com (2a01:111:e400:2a::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Mon, 21 Nov 2016 18:22:25 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11OLC016.mail.protection.outlook.com (10.1.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.4 via Frontend Transport; Mon, 21 Nov 2016 18:22:24 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2912; Count:19 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id A7.37.02899.74933385; Mon, 21 Nov 2016 10:13:30 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Mon, 21 Nov 2016 10:22:20 -0800 X-AuditID: 0ac94369-607ff70000000b53-81-58333947859a Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id E6.34.03661.95B33385; Mon, 21 Nov 2016 10:22:19 -0800 (PST) Subject: [PATCH 3/3] IB/multicast: Check ib_find_pkey() return value To: Doug Ledford References: <94eb11fc-b558-b994-c933-da784caefc53@sandisk.com> CC: "linux-rdma@vger.kernel.org" , Sean Hefty From: Bart Van Assche Message-ID: <950a0611-4aad-9b85-8d18-3dff54db2820@sandisk.com> Date: Mon, 21 Nov 2016 10:22:17 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <94eb11fc-b558-b994-c933-da784caefc53@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsXCddJ5ka6XpXGEwcEzAhYvz39gtXh2qJfF onn9BhYHZo/Fe14yebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MVTeOshcs4aw48/wYYwPj Z/YuRk4OCQETiZ8zV7CA2EICS5kkjv7n6GLkArK3MUp86l/A1MXIAVa0Zw0rRHwpo0TP5xvM IA3CAi4Sj9c3sILYIgJqEpteLWKHGGQncXz5ETaQXmaBJImZK4RAwmwCRhLf3s8E28ULVLLj 7X0wm0VAVeLb8VlgtqhAhMSmr3OgagQlTs58AmZzCthLfFl1ihVipKbE+l36IGFmAXmJ7W/n MIOcJiEwjVXi1s5zjBAnqEucXDKfaQKj8Cwko2YhtM9C0r6AkXkVo1huZk5xbnpqgaGpXnFi XkpmcbZecn7uJkZIuGfuYLz7xPsQowAHoxIP7wdu4wgh1sSy4srcQ4wSHMxKIrwTrIBCvCmJ lVWpRfnxRaU5qcWHGKU5WJTEed3ufQkTEkhPLEnNTk0tSC2CyTJxcEo1MKoXZB3IWLiz+vKK pCs8832/dPZJJ37gu7rg1AWlil+qp4/ppaUx7Jecq/2wZutqfamZy/+cnNXdcb3dX3bVPvfU PTPFfeIbxf3Cs/R2NbbcPLC0fnXaTjeVuxLNCzweSHq+Zpy2JuH+nUlxIRdXOttv3jPzkN+v l/H8puH3zGew+66aFnszt02JpTgj0VCLuag4EQCkKSTycwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJJMWRmVeSWpSXmKPExsXCtZEjRTfa2jjCoGWZrMXL8x9YLZ4d6mWx aF6/gcWB2WPxnpdMHu/3XWXz+LxJLoA5issmJTUnsyy1SN8ugStj1Y2j7AVLOCvOPD/G2MD4 mb2LkYNDQsBEYs8a1i5GLg4hgcWMEivu9rF1MXJyCAu4SDxe38AKYosIqElserWIHcQWErCT OL78CFgNs0CSxOVFXWA2m4CRxLf3M1lAbF6gmh1v74PZLAKqEt+OzwKzRQUiJDZ9nQNVIyhx cuYTMJtTwF7iy6pTrBAz1SX+zLvEDGHLS2x/O4d5AiPfLCQts5CUzUJStoCReRWjWG5mTnFu emaBoZFecWJeSmZxtl5yfu4mRnDgcUbtYLw+0fwQIxMHp1QDY8ubeqEcbRupvCvnIkR3vAw4 I5sxi9vjd63/GuljZvtm3avsLtgZX/Tr3RpG3dWy+z+4/oip2MEyfR7rlq9FK0Kcnh46VH/v vtyuqXfnOIqb9OglW5y6Xq975pxMzAWzqV/FyvSXJO9tuRu8S+YgU4Pjseqtzx+HSWVY2x0p cuhaz6p+8+wZYSWW4oxEQy3mouJEALducEXsAQAA X-IncomingHeaderCount: 19 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(3190300001)(189002)(199003)(68736007)(64126003)(76176999)(54356999)(23676002)(92566002)(8676002)(230700001)(81156014)(33646002)(38730400001)(356003)(4001350100001)(4326007)(81166006)(97736004)(8936002)(305945005)(7846002)(626004)(77096005)(50986999)(83506001)(36756003)(2906002)(106466001)(189998001)(2950100002)(5660300001)(69596002)(50466002)(110136003)(87936001)(65806001)(86362001)(2270400002)(31696002)(31686004)(65826007)(53416004)(6916009)(65956001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB2853; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC016; 1:eTVYx2j2DVpJNFWcIez/SaU2qzImY3YaX+8n6sNd+JrfUgagvbLYm4Shyue+V0yV8ghofb0N/ZqtmrRyknYR1DJs1ZD8LhM36Ib+X4mHccATO8YuwaFd/x/AHJhR2aZP/TEC+sbJWwe0AkgucN+qLE49RSGPxwWot557M2Y6g0ARgomtlZo3gDjiWcQNXJgZt09aTd43WONgLmXNEvE92a/NcE1Jt6aYPt8WberlTlNFXbDUiDExVQEN33lAMZmgawJZd1I7aMSbwhitU7rEAkiWGtFiptSIVNPuwtjBsDhTvsQZ/anngxd3h6Ih5ECIw2d1CYqzZ0VpgYFDe2sfKoaESo822ZnGsjt4s1hmp7RnTxROu7cLL9IjcZtNp9iImJ11ycTOXAU3d8kDBFwkT2ezg2o/xk0TvV5KjtSvPDUbhngyv2D+JssYEURAMWq2g47acAPgKydbd7MCToefqmhKBlGc6GowXmA4+UTYm2FT1otvEyKh+Y1XDB6YLA4We36tT5wC8Z3/hAWtxEGHEJ0sh4yY1Ks5lLRxRRUyTpjLkoV0S8SC80TD5opaPQbLucE6HajJnDXOA/NpV67UCAO3bEbjkfF6pvOn+hpizfc= X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2853; 2:SIobedy2X7AXFlxLIJw/Sm62jSg+leqrqOMffWimBJRAKQyqPermNRy1GIhqkUCQKV5Oz9J2I5TxQcKgGo0H0g7ahU8her+Xgnu6shSPT7TrS1Vcblu/SxaHKokCPBzvvdXX/EfEdRGLoWq8WAneMt6tqjEA97SOWD9n/oMFr90=; 3:Q/OVsTpvJ0ZoAHCFynD9OhtQ1/tl27Xf7hO5GbOxRaboDrY8Q6VQssVUgOSfJJoA+xg7e6DMsV6ayFa0E/47dDlpLHepzvniMgqi8EOSa2Yqal6vVi5N6w3Gi8j+BAd21WYiz1GOmr8cu/D71Cmppjk9aYKZnq0jOBaW3xueHqq0Uuo81AJ+Ds2X2UwxTYASh/h3sXKW5+AD91SgNjota4zKQ66vx/cx5CnneGjTFRyJ/dy3lIZrso8mW2n2pMHzkphTyPfijNLq8lvdvuL+D26y3yt8+ebs43ED6J25kNs= X-MS-Office365-Filtering-Correlation-Id: e380fd5a-cfa0-41f8-f324-08d4123b57db X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY4PR02MB2853; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2853; 25:mE0cS0VB15HWUwgCbtVKq2y56EhgOqICrKZ29vVpJvT1G2c/L7chQm0CJSdWe8xw0vUrOuSanDv1dW1S9ozkLbcrCt/QCxqj+WLGvM4S87ebuMN+WdgSQWYPQM0WE5/RgRAfzg+Zrr4f8md3ov6H4TgNGsZ8veh9GArYDLL3XbCjukCMEGnew06lBf4TfHTK9mS6MM7Ttb2qMca/MKRD/xZCluF8U0AQFUYwWMtwYwQG76jggYCCRofYpC5/NDqfXVne9sZyYMihvgtyJeOwWH6OTYOko0SGBcfZVdOFsg++BEaj59oMDXWEfu6UyHw7ONKnzLIuxi+LtnorUveWlkocjlJKMhEm8nEZqE61UaM9Y59SsiuzGyus7/F0W82IQV4GBhwrFV2Ln5boosqrwLmolxedPzNRHQ8US3TM9BqXbMX1xFE6YOpdaaf+l1A4kRlWSTGdwuDWNc2SZ6OJyQ==; 31:TrOY8G5OfIavXtC7JnBbwnr8SGuaDEcKXvoikydJH7IUirLFxKBW6iJRaOn2FFcHzHfO9Y2hhHRT0jZ+2XryUG8nPuAWbwG1a5lBMU4nUEgvfIct3jZWQpWmu+oTrmBB8MVy2bLjOEyroGB1WZi841E9aRhFFzLn9unbfMXyuyOFzUaLLQL5C2FSEq15U0GE665+iRxousS8/cir8nHezvuGPwRNoHYI/oD13XlYGA/tOHoeqRV+/ZZ7SMFIx1evwM2ekeGqthxaASacDNbCRQ== X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2853; 20:rFM28Zhrcl6eNPxQQtJvhDkfzMiVSbxonT+IdTt407wwnd31npdtbf+YqJT3/igpM42kH7pnxtZwjswfoZiRBpZ+dHKQuBz4NYSHTieG3KFcqJyUCjjAsLVwa7ssDeHnXBQP7YayjHzATeyPxeIIGgr4ctWdVRlyvfAMe94pdyTzcVY48vDN/cI4uqZnJfoSD10AYk39wDig0IMVlzX/k9vT1DjkTCCScg6LQZVurgeChB9p6/KdysVf+XANZ7xgOOKFodoh5C10CK3+xZQ9AXMj+x3SJ9tSpgEmvQ1GfNy6sXo1dEpdsfLRk75JtP4T/MlYW5u4RD36lrJ4p/1H4blEPzQXa3taF35Kq+AK6Guprqo9QaeNEmNE4EWNliY8LLhy0t/w3B1TraEEItvsrYI1FZUHPlgVFQ+eEDRL2KiOpCgWkzqc7jizacxf5rOfUXvXY6drkiU73WUr1V10OZYYDoTtYke5jLEspR1OqN/zKkLDcnVPwTWLpJseqtYQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040307)(6060326)(6045199)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(10201501046)(3002001)(6055026)(6041248)(6061324)(6072148)(6042181); SRVR:CY4PR02MB2853; BCL:0; PCL:0; RULEID:; SRVR:CY4PR02MB2853; X-Microsoft-Exchange-Diagnostics: 1;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R1CyfzsadBqqajjajzl+qSOMw8D/kx+0rpR/t/4gVa4aCcJC07Yusz5iwJQI5uZp07VGtqlmj3woSBgfXvCtev4cQ8RI2rs4wm/26c+TAKUrlsMg+olN02I=; 24:kecruRnEfGa4/C4zXkJ35sTVkHrMxz/VOqSF0EucWJQr2Tdj4uVN0BSpGaCEPwB+oWLj/o0tWGWVlIQW7xHwvMUgxOPNAzR3DCTEfZ4u4d8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2853; 7:BkiqiErNv+l0hQ7CeOqoxdy2Gs25dDt4DBPFOgKMHuT/dSodO30KMEmrc3HjkOGqAaCB8FXc8vxGil4yIO/CdDMyVtZKCkgO/MzyLt61BdgJS8K9i7GhkHTdmht8LyyntOtfHccuTqNU7fhd/STN4HPpVHypOrMac0YFxxgjO6/Hd1TIEnsmykTMP94O8A3Pr7xYn1xlFPzhh61bzDV6wxHlDCFYIjBghija5gC8qz6HslAWZ31wNOYu6iLseVbSFtkc9Ii78vuqEkvRryooPu2JMrQzZG9+qkekzCSLUzeZETBWehlcw1VF2gBP5Aar/ShvNK07Ifvwhpt7Q0q3JhnFpx05aStG980ZqIV7aUw=; 20:/JB+PAJ566ORt6+WwX3wvwjOr/kVjCAnW3HEflQ+QymGJlnjZEXowohRZOMZwHMiz/M4aBv3LMPpj1tUg2TVDD2YQ6xPKAiI9pbRdNrf3I+yM3XNtyayNi9Z4ShI4gEwiJgOIZALeSTFC1XorEDyaYyVgucYT9T9b3VZR+XhdEskeXHGwCw54WoNle0PSKkgxsMzlDeeWdGoij63Iu6f2phAjQUAtTiTGQjI3lk/TWHUbFlmDKf3f9pT5z4P5OcJ X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2016 18:22:24.1565 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB2853 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that Coverity complains about not checking the ib_find_pkey() return value. Fixes: commit 547af76521b3 ("IB/multicast: Report errors on multicast groups if P_key changes") Signed-off-by: Bart Van Assche Cc: Sean Hefty Cc: --- drivers/infiniband/core/multicast.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/multicast.c b/drivers/infiniband/core/multicast.c index e51b739..322cb67 100644 --- a/drivers/infiniband/core/multicast.c +++ b/drivers/infiniband/core/multicast.c @@ -518,8 +518,11 @@ static void join_handler(int status, struct ib_sa_mcmember_rec *rec, process_join_error(group, status); else { int mgids_changed, is_mgid0; - ib_find_pkey(group->port->dev->device, group->port->port_num, - be16_to_cpu(rec->pkey), &pkey_index); + + if (ib_find_pkey(group->port->dev->device, + group->port->port_num, be16_to_cpu(rec->pkey), + &pkey_index)) + pkey_index = MCAST_INVALID_PKEY_INDEX; spin_lock_irq(&group->port->lock); if (group->state == MCAST_BUSY &&