Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2348561imm; Thu, 7 Jun 2018 09:09:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQajus2MOSPIcMLwRA6X1bsuIPhYnuzCYbQjwcgjaMJ4/nHljSFp5lUy2u1e3zayy538k8 X-Received: by 2002:a63:b742:: with SMTP id w2-v6mr2074097pgt.200.1528387773771; Thu, 07 Jun 2018 09:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528387773; cv=none; d=google.com; s=arc-20160816; b=Ek3AN3DL05YVEv+8TRH8VK9hQman61ftKeItvQqy5rgiP+SBWGXVQ6UV3JH3t4cBTC 1t3unI7O8PnE8vMAEWrBYeJu9D46IjG5OpSalKmw6+H3Ebvpv1wHxQQxkXokBvWN8KJK WpaMe1yP3MqFDRGNVMSusvT4F5RZ4KT25yIShXVOm8Ytf5lQuWUfVsTt8Krd/zq0VdCR GvPrw3K3aUfqWEAzuQZHGG84GOR4dxbtseq8xFT5caJQ6M+XppXBKExHq1juQ8TvIC1r 8VqVqDGyHCheYEKpF28RlRgAa1RXc2snvS6aMouB8IfYnd7cmY+sJDgHZAEgYgkHXpdW ssfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=UJX1jZgjzoleNI5Zq05witKnyRjZfgw+Cv4jq4SQNC4=; b=bKIPzr6oK58aRzqUgRC1585BMQyE130UZN/bM6Y4ECEAB6e5M/7qYUgm9YdvW1efWf zAxheY0pSK50KUqsOQNfmmR1GAJB1G3t61meTN7wg80Rbi1D+JKqSkpEW+9VIAOwmPOy NmIb4iY8qEUk9vmtiqW34J1kzHRowU5eTVqa+ARnJL83dBdZnoMTYDhUV4hDnnBrND2m Df+T0aVJJX5aHq42vD7FUfAFS2u0k8Ruy2fsXZusigwbX/UqVS5gvSOL+6PDZSpe+RBb snzuF8KSX44BRTgrl7rpqjcSWqMR5QD3D39pz3ZPLnZG/h7tunNI60clN9q/VV8eKv13 j8Ag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12-v6si52725957plo.264.2018.06.07.09.09.19; Thu, 07 Jun 2018 09:09:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935803AbeFGQFH (ORCPT + 99 others); Thu, 7 Jun 2018 12:05:07 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:39249 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933014AbeFGOJE (ORCPT ); Thu, 7 Jun 2018 10:09:04 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvb4-0005Zr-Hw; Thu, 07 Jun 2018 15:09:02 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb1-0002pC-AW; Thu, 07 Jun 2018 15:08:59 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Kalle Valo" , "Colin Ian King" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 099/410] wl1251: check return from call to wl1251_acx_arp_ip_filter In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King commit ac1181c60822292176ab96912208ec9f9819faf8 upstream. 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: Ben Hutchings --- drivers/net/wireless/ti/wl1251/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c @@ -1199,8 +1199,7 @@ static void wl1251_op_bss_info_changed(s WARN_ON(wl->bss_type != BSS_TYPE_STA_BSS); enable = bss_conf->arp_addr_cnt == 1 && bss_conf->assoc; - wl1251_acx_arp_ip_filter(wl, enable, addr); - + ret = wl1251_acx_arp_ip_filter(wl, enable, addr); if (ret < 0) goto out_sleep; }