Received: by 10.192.165.156 with SMTP id m28csp68765imm; Tue, 10 Apr 2018 16:36:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lOOfwj5/0qxeGi0vMXKE3ezBKR7jj0oAMqWmbx8jh3eb0JaoEyXOEPrNkFRn3SP/Z85lL X-Received: by 2002:a17:902:206:: with SMTP id 6-v6mr2475695plc.376.1523403376838; Tue, 10 Apr 2018 16:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403376; cv=none; d=google.com; s=arc-20160816; b=iBbxbWZ13pJmwZGnUOUNKK4khRV6wYvBs1wUQ9HEoLif0kQn30CKVSrj3kcMkruy2+ Zju7ocFhsl7wcEFDJ4YudSz03ILOmIGC/jhFCyxm7/GzoXmFH7Sl/azxwo+UHOnlnYC+ ocj3ThRzPTFEkYOKTva82itMt3mvHil6TtSasRxYXL2ZQZ5p1pl+V3N1rvbfEKvp9cOl l7n2YxiDT3GW6FZFv91Yfp5rAxQtd0RZJJJ6nB6CrK+6GGcxdIJyKM1UkVAHfH7GveVW ilFnsYAmCLaoMibc14XubKv7MhWjQioEiujMhZlD1dz/fsJHuWjy6MI6RK6ji+6pDlEc /yvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pL3jl7onsRS2+YMlRz0vz4MXcXLfazrpZxczy70MlZI=; b=J/kOMRvrRj4VfpsyAVQCuiqKaGEhxfbJxXt/X04qDVU3uM5eIA4U+R5X2eLwnYrnv1 45tR8+3pHYuwKLoY9Rolep5RjYNnqTvS8c0LX/0iRjIyh4kSTLlaihhqrslhIDgOW1Gy cpuc75Rl+CPKBw6Gq/jlO6Wx54YzwYIPbFbfpc2eBYLqHmNFQ+IBAZlEijUhCrPPFjqH xErVCqHfGevkFTETy1WMyd9CpuZJuo7qNwJW2JuEgUq77vf6uYfQBUlKqa7MLd3Ux6Uj GscyWw5FjURmHbfpZhiTRsyUs56Bno3fDEbE615ffRn5haer/oson6W4DmcW8b0aA4Yb PMdQ== 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 t88si2867049pfg.342.2018.04.10.16.35.40; Tue, 10 Apr 2018 16:36:16 -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 S1754125AbeDJW2q (ORCPT + 99 others); Tue, 10 Apr 2018 18:28:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39204 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754090AbeDJW2o (ORCPT ); Tue, 10 Apr 2018 18:28:44 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8F1B1D16; Tue, 10 Apr 2018 22:28:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Kalle Valo , Sasha Levin Subject: [PATCH 4.15 066/168] wl1251: check return from call to wl1251_acx_arp_ip_filter Date: Wed, 11 Apr 2018 00:23:28 +0200 Message-Id: <20180410212803.006342973@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- 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 @@ -1200,8 +1200,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; }