From patchwork Mon Nov 21 18:21:41 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: 9439919 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 D07CD60469 for ; Mon, 21 Nov 2016 18:21:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA1D428755 for ; Mon, 21 Nov 2016 18:21:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD43F2876F; Mon, 21 Nov 2016 18:21:55 +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 66F8B28755 for ; Mon, 21 Nov 2016 18:21:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752805AbcKUSVx (ORCPT ); Mon, 21 Nov 2016 13:21:53 -0500 Received: from mail-co1nam03on0061.outbound.protection.outlook.com ([104.47.40.61]:53165 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752054AbcKUSVw (ORCPT ); Mon, 21 Nov 2016 13:21:52 -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=H4aTtktukNloUzNQDrehBUnfA8tgNoDCaMof1oeSD9A=; b=UkiZ/1VrP53aGYSHyc2FtFiRB3+bMyS5HXngcbpDA+sZk+QZseaxeevZddg0CFui7xIztsH5zLzxX3oNFvG3kAi68ad2SnRuuqRTYRpmpQsxhmba6OP7ffkP9lB9EZtQiVKGLt5oNLm+3AiWv5cd9+L0tu3OkEYwdVu1lEyUys4= Received: from BN1PR02CA0014.namprd02.prod.outlook.com (10.141.56.14) by DM5PR02MB2828.namprd02.prod.outlook.com (10.175.86.19) 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:21:50 +0000 Received: from BY2FFO11FD044.protection.gbl (2a01:111:f400:7c0c::140) by BN1PR02CA0014.outlook.office365.com (2a01:111:e400:2a::14) 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:21:49 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 BY2FFO11FD044.mail.protection.outlook.com (10.1.14.229) 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:21:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2919; Count:19 Received: from MILHUBIP03.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 E6.37.02899.42933385; Mon, 21 Nov 2016 10:12:54 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Mon, 21 Nov 2016 10:21:45 -0800 X-AuditID: 0ac94369-5f3ff70000000b53-78-58333924ae03 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 6B.CA.02804.53B33385; Mon, 21 Nov 2016 10:21:44 -0800 (PST) Subject: [PATCH 2/3] IPoIB: Avoid reading an uninitialized member variable To: Doug Ledford References: <94eb11fc-b558-b994-c933-da784caefc53@sandisk.com> CC: "linux-rdma@vger.kernel.org" , Erez Shitrit From: Bart Van Assche Message-ID: Date: Mon, 21 Nov 2016 10:21:41 -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+NgFnrILMWRmVeSWpSXmKPExsXCddJ5ka6apXGEwdFvChYvz39gtTiw+BKj xbNDvSwOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZXyY8ZS54x1nx+WcvcwPj Ro4uRk4OCQETiWm/Z7B3MXJxCAksZZJ4fP8JM0hCSGAbo8TOzfwwRWefTWOEKmKU+DZrCiNI QljAS2L/gU52EFtEQE1i06tF7BDNdhLHlx9hA7GZBZIl/u3+BjaUTcBI4tv7mSwgNi9QzaPJ 3UwgNouAqsSfNdvA4qICERKbvs6BqhGUODnzCZjNKWAv8WXVKdYuRg6gmZoS63fpQ4yXl9j+ dg4zxJ2zWCU61mpDnKAucXLJfKYJjMKzkEyahdA9C0n3AkbmVYxiuZk5xbnpqQWGpnrFiXkp mcXZesn5uZsYIQGfuYPx7hPvQ4wCHIxKPLwfuI0jhFgTy4orcw8xSnAwK4nwTrACCvGmJFZW pRblxxeV5qQWH2KU5mBREud1u/clTEggPbEkNTs1tSC1CCbLxMEp1cA48UGx0saJpiG3Tda3 pB9a+8Jz6WuRCFvl6YlTVzfP9pv+ounGqoV9k1k6TLW5Hna6X50uOXX9mW3cX126Xn7elPur 8FjPtg3usuVtz6YnHoxeNMmts2SXn9oXcynhf7FO987a1BhcF513ynaXYlfEy9INCT+FP0VP m/+siNXllWX5T+4fB/IzlFiKMxINtZiLihMBmrlS8XQCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFJMWRmVeSWpSXmKPExsXCtZEjRdfC2jjCYF+HuMXL8x9YLQ4svsRo 8exQL4sDs8ez6YeZPN7vu8rm8XmTXABzFJdNSmpOZllqkb5dAlfGlwlPmQvecVZ8/tnL3MC4 kaOLkZNDQsBE4uyzaYxdjFwcQgKLGSVuzV/DCpIQFvCS2H+gkx3EFhFQk9j0ahGYLSRgJ3F8 +RE2EJtZIFni4+2DjCA2m4CRxLf3M1lAbF6gmkeTu5lAbBYBVYk/a7aBxUUFIiQ2fZ0DVSMo cXLmEzCbU8Be4suqU6wQM9Ul/sy7xAxhy0tsfzuHeQIj3ywkLbOQlM1CUraAkXkVo1huZk5x bnpmgaGhXnFiXkpmcbZecn7uJkZw6HFG7mB8OtH8ECMTB6dUA6Pb7rd/TT3bftce+rMo1rPd fvPj2662j5Vvq1lteXbcPES+v3Prj8wpzblRTbe1L9zfrNLJ1XabT3Oryr+J833KIq1l/268 mP/qa07Vr5oH4bN6nkaavDFmS1i06sTbK9fP1Wy39dZYn6KW2SZ0O7ea+9NS1Xa23I/SN5o9 /3hVbk7dcZn9wSYlluKMREMt5qLiRACP9AX97QEAAA== 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)(199003)(189002)(68736007)(69596002)(5660300001)(53416004)(8936002)(81166006)(81156014)(50986999)(110136003)(50466002)(77096005)(106466001)(4001350100001)(65956001)(2906002)(97736004)(83506001)(38730400001)(65806001)(36756003)(4326007)(47776003)(189998001)(7846002)(87936001)(305945005)(86362001)(31696002)(92566002)(33646002)(8676002)(356003)(2270400002)(6666003)(65826007)(54356999)(23676002)(76176999)(230700001)(6916009)(31686004)(64126003)(626004)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2828; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD044; 1:5Pi7Eq7F48UmOwQGIIWV6SUng0Qnbu4zN5TpLJ0gGe11kGGzFF8ouz6GB4lFXgBccTsH+2M0pdH/1jsI/SU+0ruVxwBYkzlSpB+BKPy4TLqGf5eS0VPzWCsCauGpWPcB6ZYdZq6PRxFdipeOhBtglCuCYWm+PyyrBJS7XSNiOjO3xA474eCVB7CQcuDiZxOcVQ49iHn5ObQqBFZBSI5lh5SMNsCbLx+I+H2wvUGyqbfO4O2BZWtmoTMowKjkWXnBNo48laeTXRvnqlTo00Tth9wG0hC1KQ2Q79g1/g9ufOTcxFK4vkuEcLlXOkqhmZp893zRiudLgbWr30+3m1qBSCOtGOOblF+PNSW2INpouQbzRtnDul6685Pd54sVANevYnWLg4ApzRFWVYt8BFkUb60jMfJFKsaQq1N6xtj5jF/nxT1EFv9gf82Un+Jhs4VVtQZj4ldmHjX/TIrtyeja6eHKrBGzDFYH3hYrZrup0JVsV+JW1d0YrpCc0mbAje+W+Jo+lvl4mntelmy4v5L2nyNr98ocb1yHGAu3m6ZRpVI= X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2828; 2:Vq3+9TM4yK9BTuRiK/Av7KiLn6JII7XMJvKXq4bJdsQPRzeYQEHKu+Su2FdmPaWlGtxPNO6abHbfz442T/wL3L97L+Re82W/gMPdaVZQkMj+Qkh0GK7ToVFqmQe03V5CaKZHRywFcYYaKDE7sfBivyg2wQAaviVw41TrBzvOWwA=; 3:cUU0iBrghvG6fzpM6RDO9MYtUVXq7SJzTLhfZdsYb2fvvmtfhYNcJ1BzQs4QXTI42obU9AXS1Sa/yUhEukvVRgKzAt375G9Q6I52h2RnJVyT+oGClmKfPaQLKgoH1/tYfDvyokKSL/wXASSeh2o75P8i8aCtbe07VM1H4Mp6hxeTDdhPLtpTi78Cg7hrPMf6xpfxV6IG4heC3NuVdbnU0xz4bFl5lR4QjDIkwkNikDL8VhXOfWtWMJHOhx/jl7oFpq66atmugJX7A26f+LvSn1zFTl4myiw3U09n4XzEEls= X-MS-Office365-Filtering-Correlation-Id: ad76e954-bfcb-4f68-ae4c-08d4123b4219 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DM5PR02MB2828; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2828; 25:Z8uN4/WBRQefdzOT1ReS5JOoR/dVM58AodmvtJnzc2aku0NA79OILOW5IWW6kZS2vbJRwK8K2B4gI3q9M1FAGkCcSMoHk487+Kmpn6WnKtjYvfS/2UeFyUeHt/eJYmG9yVVqv2X3Q8mm+owLz1gFsWNR0219ln0PRHHp/1lkx4BFWx0R0srWJ6YVZR84FXIVH6Ea5G5Yf5b4CUnO/UgP0IdqszsaDCMWlybgCJWPwstAVgUtEcspgAqtnX01QA+VEPk7Gj5L2tUzU4Hb/88Z9Q0U3rKOOOma/FiQbi7G6MVMjVKujKU6ZjInCneo3g2YEkaGyfAAWsbXV8L6kMvSkFkqdqkbgp3MzmfRgf4xtXHveScapoacwjHczVX15H2EsQWl1x1qsTiLgZIVEAEa3Llmg60NqBjVoI9PbRr80RIVee3if6x54vd5KQ9edE1ahLdy6YX3kBsBTFSdDmqzvg==; 31:x6vak4VGMSnUiabsyNAorKCyMw5pwW1O4v3ajds/vp/kkESsxyccs2nSIziL8GFjP8scapzrNLj1XgcyYw2yeR+Ht2poDnJeHpj7t/D7kpjk5C+87S4KuQiWlEJx67vPJpUTYdh39E1iPU1aSHt89Can6xUBvFpWWPP9A/8Z4AjX+wR6Ty7qI5kchEf5iLD4izY5tBSHVnQR5/qQnTDhaUixWPS4trKFxKgVgOagAwGVy6ZtZa6/2RNtlOuZnP6Z0n/VE67P4K7nlrsGpddKQ6K5cCNoYhdbcULQA9+7VIY= X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2828; 20:L4rkP3nKOhHVfbWc+40jlnPWx6U9jzIz2pZVXt5BrESF12IUoYRD9bjz5dPu/lc1gxYXLz+pqxhN9yBzgukdKpmUQFoEubvsiqAQsV+ScFIpI45OjvwZSkhVi5zuVTETnfpnIQ2yp/GtjxJL6h4rmsq6V83kgYOJbrWqx8Q+ONIcg9LxTukTWoUQsdeA37/PTd+poGVuKdNqbYtCX+Fiuvg09cHto4VoMqk61Lgw9ZtHgJtjJyPB7f3RM9KskOZ+FzI+BxC/kkugcMOEPQeGpsy9u5erJalz0JEaXL9Jx5V8Y5ypU28M9wfqT9G87hmKfzWy7d9kyYIIYduVgQVtc6ke2FI83ROnEi1kdB07b1XuMFLpVb7r8/S9tyOfldEFHY+CC1+oAvw/SKzRiPL7eetKEg6K/zJqXBEoWKsiZ8dujA2fRedi7A/qgwYmI/TANV9gmPlegt9h2ZC/ofI1TqGJ/g4bRvuOMx3sXHEnohKUfUyjHVkhzG71CyIRUnhJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(9452136761055)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060326)(6040307)(6045199)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(3002001)(10201501046)(6055026)(6041248)(6061324)(6042181)(6072148); SRVR:DM5PR02MB2828; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2828; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2828; 4:Q7n5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mjh1Ia2owjgp2hTjRuOo+1VzEOgpy/GCmyEIcjiuYE7Lgaq7YuyN3mp4n4nyxzYAoLdt8CyDfblWuBm1fU=; 24:UJgFlEbtLSU1GkvO6+WuB/SIySDWwPu6CBSQHi3hMaTrwjxF46Qwc16Qq8p+4deK6R9yh2vEyJwW9CVJQG4uw6IkagukIihRoWIG9DJpKGE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2828; 7:BpU7EOsVu1b0SNVgJ52SVnqRh9OZiToCm+ZfEEm/YDmVQ2f0G2b0x2PBPz+Wk9dvPvEtE+Fn5jlwvJvoqpbXqD/nKMFKuOBY5hCrYnk4/VN6U5ny2yz3vTTPAMDBzxaZzP5bM3Gc9FLuDO9wiVnfA3ZASgoM5kfUC8iOvPdHVaIxpGU7VAi92BuBBlkjxdTcteiUI+NNKmzhzlMwmf5YHMsz7wPIgzIGZN2X2EYWeg0s6x4XyP1+jI4cvDmdJIqR/vOueVP1ulpL8MufDc+dd+3nIZBfKHJ32/b1J5w8e/mbvMpGEdZBbChoIztSTtiyT7lzLa0AJGX1JQm1lk3g1dwTSbZeK3ypYA26Yg84S6U=; 20:YfW0vryYD4QTuHBYOakCKXJ1efkSslmVqketWgWlgWONFTmejbbevT61R4ycgIxSF1Q1zzMWWpTJWIWaut0j1n0SVShsrGJ+r2njQ6qMeIv1yji7MKKEQRLC+eLY8Nt/R8UbJgVYRV9t8jMl1kIk4Fa6pOArPupsxUKjzNkcVsrBsUmgnvcfbufe57o3Ek6QqHFualwN+qAE6lcKByTXfE05/1h92CgpDZyzUDS4brKJsNkYsIIhctGsGSCZDVCk X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2016 18:21:47.6668 (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: DM5PR02MB2828 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 reports the following: Using uninitialized value port_attr.state when calling printk Fixes: commit 94232d9ce817 ("IPoIB: Start multicast join process only on active ports") Signed-off-by: Bart Van Assche Cc: Erez Shitrit Cc: Reviewed-by: Leon Romanovsky --- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c index 1909dd2..fddff40 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c @@ -575,8 +575,11 @@ void ipoib_mcast_join_task(struct work_struct *work) if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) return; - if (ib_query_port(priv->ca, priv->port, &port_attr) || - port_attr.state != IB_PORT_ACTIVE) { + if (ib_query_port(priv->ca, priv->port, &port_attr)) { + ipoib_dbg(priv, "ib_query_port() failed\n"); + return; + } + if (port_attr.state != IB_PORT_ACTIVE) { ipoib_dbg(priv, "port state is not ACTIVE (state = %d) suspending join task\n", port_attr.state); return;