Received: by 10.223.185.116 with SMTP id b49csp4170484wrg; Mon, 26 Feb 2018 12:29:05 -0800 (PST) X-Google-Smtp-Source: AH8x225wXJDooZ1FiS785owxlKzx1hgbunvXhoSTDWzhhZciWI5VNtAOLJUMRTQXvyTYVA9TRRW5 X-Received: by 10.99.147.14 with SMTP id b14mr9615844pge.14.1519676945240; Mon, 26 Feb 2018 12:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519676945; cv=none; d=google.com; s=arc-20160816; b=jGUuQoY7JGo95jTd8lgp197nBGQzmCc7AVofmwOKQoWCkhr2lD/+S5VA0YjqHT9woo EeCeogihnJ/+GBbqbXEGwZLYGEwiEfzC5WCT1n4yKalj0Eg5iYkbxuRop+mqJZu4sQNi glybZkwvDWM9mpzqt69u1c+tSOutVl/lSyqj+0u3qmmeav7nch7Iho6Xz8BMPa/F7i9w kSWqKi2OXg+KplHQ06TWy6UL4GXb5ZZvFJoJgdG3OBlF/8M+yk8t1QBoJTsyKrkyXIAB 0wuuqS0RVvym1JMOW0NP0KQRViAMqTCeEwWsp6j8hl6HuKp8QMzwOLlvLjHx/6pUYZup emAg== 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=gn5bVQs/IDiBEeZW+Nw5ywnijKSLg3syyVEKLKdg5ng=; b=puToAW5kHglZDnQeqoZYCcy5VTnSrXnVdceHrp28Yp3SNXBqDmcTURd5jbEQX3UbjC ktZo3NoJz/689mRxTkipocAYVoSELjdgVQMxxuwHng7lUSYXA4A7Mq5FV/tkIuow6R8g fyOrDhELbDCS6kRgg7EfFHaB/hEHjcCVIoIjS19OYYgGCzCHulwVejhduQTjNCaYuUNE ly1UtNmLTKhVZemJt2GboscCpR6Er11W7DS4uSTHc8MvXqcTdvNyaRgqu5TgklLMcgcG qiLaZos40Zkttys2s0N/N6v1pQhnHPIca4VY4kvDkALO1/tVBSAl13TxupS4m2AH1b8t 4vig== 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 o11si5946368pgp.624.2018.02.26.12.28.48; Mon, 26 Feb 2018 12:29:05 -0800 (PST) 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 S1753723AbeBZU1a (ORCPT + 99 others); Mon, 26 Feb 2018 15:27:30 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36490 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753710AbeBZU12 (ORCPT ); Mon, 26 Feb 2018 15:27:28 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 59DDFCC3; Mon, 26 Feb 2018 20:27:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Johannes Berg Subject: [PATCH 4.15 08/64] cfg80211: fix cfg80211_beacon_dup Date: Mon, 26 Feb 2018 21:21:45 +0100 Message-Id: <20180226202153.786982418@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202153.453363333@linuxfoundation.org> References: <20180226202153.453363333@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: Arnd Bergmann commit bee92d06157fc39d5d7836a061c7d41289a55797 upstream. gcc-8 warns about some obviously incorrect code: net/mac80211/cfg.c: In function 'cfg80211_beacon_dup': net/mac80211/cfg.c:2896:3: error: 'memcpy' source argument is the same as destination [-Werror=restrict] >From the context, I conclude that we want to copy from beacon into new_beacon, as we do in the rest of the function. Cc: stable@vger.kernel.org Fixes: 73da7d5bab79 ("mac80211: add channel switch command and beacon callbacks") Signed-off-by: Arnd Bergmann Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2863,7 +2863,7 @@ cfg80211_beacon_dup(struct cfg80211_beac } if (beacon->probe_resp_len) { new_beacon->probe_resp_len = beacon->probe_resp_len; - beacon->probe_resp = pos; + new_beacon->probe_resp = pos; memcpy(pos, beacon->probe_resp, beacon->probe_resp_len); pos += beacon->probe_resp_len; }