Received: by 10.213.65.68 with SMTP id h4csp44404imn; Mon, 19 Mar 2018 19:00:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELtUnpx3GHr6Ae5XQ3iPlHgvTstaL6YOC0Jf8XoZvwUexvREDD2eD44RJgskwKhsPRpGSvVZ X-Received: by 10.99.137.65 with SMTP id v62mr10597519pgd.90.1521511257120; Mon, 19 Mar 2018 19:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511257; cv=none; d=google.com; s=arc-20160816; b=aXxntCaY2d/f1kywTWsABcjgHs8HzSV14PYuwoK8OzorW6JNdnz477r+ovby/lIZdA 2iqkFmQWFPRIkpQ9k2l2uYB8RPvWCHUnz6UwRvEq43IEL9nC/8AfijvCzO9J/rwn42H8 IzSonKPNE4zaeHHWVxGdUMWKJxoTfKpnr2R2LcH7jY9orwlYu1gV3DoeoVgeJlVT4oP7 XoqQzaU1dzoeQfxe4M7/qnoUnc/ckFW/TpdLTe9E+jVOW8lISjBqUxmZ5Pn/DIgzyV6O x3NDtgjzxKht483cv4TphH9rKO7XSkH+L+vusqRtCJqWkgXh2GuZPyb3SCsHiJSWpzQs x1sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=JEgF9QTj4Dupxso5TGgH5QCGmSMtvaArXO4YgQwcwKQ=; b=uGDNh289M9O2RyBHHc1PoWlWbcB7ovou8v5l2Tepbhr7fbTihZvsLmE+CLP0Y6q2u5 uuW+9/wjkUjAwAGJW4K46ZvAhHT5ftFu85z99NL0GqRp48Q0zNbLvqL9ZiizA7pNJNit lDpAZV494fRK6YSOUofKeNwvNGBxwrm87THyJbG/Q+AHb0MfMquqNFTGTLLRiBhZhnNW TWR3rTCT99UmpvRFsuiPt4AtwO9Ap2G5jo4l9Uej+PCBAXJilFlTkSaYAaUN1pJZ6zH4 q7E32PY6VenuF2B9SnA3dAcHylLEfy2Xo8fveyXSUkcHf7Q5u33SH5SLQMrihzvDGOT5 /Q5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LummLmmQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si541842pla.612.2018.03.19.19.00.43; Mon, 19 Mar 2018 19:00:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LummLmmQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936507AbeCSWYq (ORCPT + 99 others); Mon, 19 Mar 2018 18:24:46 -0400 Received: from mail-cys01nam02on0111.outbound.protection.outlook.com ([104.47.37.111]:18692 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933844AbeCSPtE (ORCPT ); Mon, 19 Mar 2018 11:49:04 -0400 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=JEgF9QTj4Dupxso5TGgH5QCGmSMtvaArXO4YgQwcwKQ=; b=LummLmmQdiDsiHqXKV2mZKb73LCngEMN3HcfhgUNNpiWqub5JYajkgbtoL5wUxtXP7rML9A5wN8KrrWy1hUx1P+8pVi/Wmocefharjh5ia7aWI6UfD8uBDF69lTtv/k6dDHF1AJUzu40oBN2LRHJCR5ALorFHuxeks/RYi9bAp4= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0919.namprd21.prod.outlook.com (52.132.132.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:48:56 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:48:56 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Colin Ian King , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 073/124] wl1251: check return from call to wl1251_acx_arp_ip_filter Thread-Topic: [PATCH AUTOSEL for 4.15 073/124] wl1251: check return from call to wl1251_acx_arp_ip_filter Thread-Index: AQHTv5m0HTvppWjnfEibIfmah9gBxQ== Date: Mon, 19 Mar 2018 15:48:20 +0000 Message-ID: <20180319154645.11350-73-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0919;7:9G/fCfsILCkTXfBepxQrjALOHxEJswnDvtujZ0VrMFojnfzaWjN/07hcuajtVb38ZgUmLjKS/zL3fdxX6BxXELWdO9Pe8yT13Opqcj3UPYRcT1tuISFRo9gEXlIB1OsiWgMIzLM0wej3GHY9j5HWqTcBeQ2Dy23Oc6fHp8dx102drDYZgWbo+EaRVHhCRDrK2OOriBPKF/OOCD2fwo0KmELBIUWJE9O/bcIZTCLom1rSZzL5531M0pdxnc/c4rjX;20:hgBevF/ts+RCrZVRGXpXWnim+e6Ql1tqPjfwbsENvtgH+yhD8HxIlo+vA6AWFaf3/bdZCmNb7Xshlw2bRBK0T+jnZ9ngnQSgBjDQGTpow56foC2dJwJvdxWwH2YQqQFRzNG+97y6PaHPcYDElo04wDTRkpeXNs3BlFv/WnE/r50= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 00e85606-2e82-4d1f-6e1b-08d58db0ec73 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0919; x-ms-traffictypediagnostic: DM5PR2101MB0919: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0919;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0919; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(39860400002)(396003)(39380400002)(346002)(199004)(189003)(6512007)(5250100002)(106356001)(99286004)(102836004)(2501003)(6116002)(1076002)(3846002)(186003)(10090500001)(76176011)(6486002)(25786009)(316002)(26005)(22452003)(68736007)(6436002)(2900100001)(15760500003)(54906003)(2950100002)(6666003)(72206003)(81156014)(3660700001)(4326008)(7736002)(110136005)(305945005)(478600001)(3280700002)(6506007)(97736004)(81166006)(8676002)(10290500003)(66066001)(2906002)(86362001)(105586002)(8936002)(53936002)(36756003)(14454004)(86612001)(5660300001)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0919;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Mpy8FvV+dtVNK5w1tpltH81kRSZgo6EaVndfPudLjuEaATOV7/+MzbUfLoqcChq8s1FBx8gGx0Lh+2ZTUMmPuE/AWlB48UWv+xObkzCl/9ax/b1y9Mi2WTLApSiyGy9LoJ8u0iGRo6WF01//D8nilgQJKL/USFPnUTQHShjT65x8xzmBVtSoUUz3SnJRytnn2X67GfZjeYtFJe/nhSCjhiXfLE/ZSvbphY/MJFqKYINhl7WGFKJXi2vS9Z54wCA0nNrP77PHCB+0r/uLCJoDCj5Ulqrixju1hN+2gG+ElN4DyYrZEankyf/tMBtmGE0p9pNNjmhSz6X3r+3JQrRTNg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00e85606-2e82-4d1f-6e1b-08d58db0ec73 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:48:20.2128 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0919 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King [ Upstream commit ac1181c60822292176ab96912208ec9f9819faf8 ] Currently the less than zero error check on ret is incorrect as it is checking a far earlier ret assignment rather than the return from the call to wl1251_acx_arp_ip_filter. Fix this by adding in the missing assginment. Detected by CoverityScan, CID#1164835 ("Logically dead code") Fixes: 204cc5c44fb6 ("wl1251: implement hardware ARP filtering") Signed-off-by: Colin Ian King Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ti/wl1251/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wireless/t= i/wl1251/main.c index 6d02c660b4ab..037defd10b91 100644 --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c @@ -1200,8 +1200,7 @@ static void wl1251_op_bss_info_changed(struct ieee802= 11_hw *hw, WARN_ON(wl->bss_type !=3D BSS_TYPE_STA_BSS); =20 enable =3D bss_conf->arp_addr_cnt =3D=3D 1 && bss_conf->assoc; - wl1251_acx_arp_ip_filter(wl, enable, addr); - + ret =3D wl1251_acx_arp_ip_filter(wl, enable, addr); if (ret < 0) goto out_sleep; } --=20 2.14.1