Received: by 10.223.185.116 with SMTP id b49csp4206205wrg; Mon, 26 Feb 2018 13:10:08 -0800 (PST) X-Google-Smtp-Source: AH8x226fsfnfxm7Lp0DBNEusrJQ5bjs07EghzmN/9M+NVm96AvMRdDrjQ5KbFmJL57rtTfjItKwA X-Received: by 10.99.179.77 with SMTP id x13mr9558159pgt.148.1519679408600; Mon, 26 Feb 2018 13:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679408; cv=none; d=google.com; s=arc-20160816; b=NqOX55TYSyLtMcHkBGe600f4Whrp3bGFja60wfWQPfpFAbRpGRbk1lW70EduClqU+F OqUGTz9yzPaWJb5+qh3nOGjxmoXI5bqlqC8yp0kA5cA9YtZrRDoKG3wv5tEapFj6cIDs aGk4ouvfy+KFpjamI9o1/g5zDaDB4PtMPyHQSX2TOppccTCgvG9fnbXtSRPTZjQlUrXE jagKUL6uFLwJBblQSygLtIc4OZ3aVaSLp4ijz+OpZQErgGgiIgai+BELxAFu5qkEFe+D eeh8ICdiMxk5hT3l4HrM1b7p+PhYwnGcmiwNfoZ+LIjDsafNcO5jud5kjPUH+7mN1nRd /S5A== 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=5Z5ND4VKO+piTp53D0t47+mf2zVv3/SkL1KkTapJIxo=; b=KV7EH58LJoyIf0NycBfx3fntmTAKD9QfQfp8TmHc/JKdmODFschAYvBiCup6NhieYM GS+to3cAD7CZo6/2ubxSlv18nL5AivejN/iEpR2AezY4+gYLl1LZZDtFAnWowrC1Vmqr vmP4UaogkobHiC3FeBHvhb14eq6cUNAiZxUL/RBiLoFKfqfIhsX+4JIq26iXmDpIgZle AWxMlTHorH7LH2DzmBukV1FSC/+LYWxdPKRwnP3SXgdTgQnSU6C3PR1/3V7a0isPGzZv uLbTzVJHYVD3PJYwi1C4D0f7hbSSu+NWNzrHFDdlpZ1JNkv11NRo3Tz3n/ng+pkNcWkJ Xq4Q== 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 q3-v6si7140713plb.824.2018.02.26.13.09.52; Mon, 26 Feb 2018 13:10:08 -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 S1752054AbeBZVHU (ORCPT + 99 others); Mon, 26 Feb 2018 16:07:20 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:58960 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751740AbeBZUQQ (ORCPT ); Mon, 26 Feb 2018 15:16:16 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F3F5BF82; Mon, 26 Feb 2018 20:16:12 +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 3.18 05/13] cfg80211: fix cfg80211_beacon_dup Date: Mon, 26 Feb 2018 21:15:33 +0100 Message-Id: <20180226201527.479367174@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226201527.242286068@linuxfoundation.org> References: <20180226201527.242286068@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 3.18-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 @@ -2769,7 +2769,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; }