From patchwork Fri Mar 9 13:23:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Christoforou X-Patchwork-Id: 10270585 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B61BD60236 for ; Fri, 9 Mar 2018 13:24:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A7A29DAF for ; Fri, 9 Mar 2018 13:24:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9746C29DE6; Fri, 9 Mar 2018 13:24:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id C995929DAF for ; Fri, 9 Mar 2018 13:24:29 +0000 (UTC) Received: (qmail 26566 invoked by uid 550); 9 Mar 2018 13:24:27 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 26507 invoked from network); 9 Mar 2018 13:24:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=MWNXC5ofCyBb8jMDXVTy/I6933co+H5gBwlgyq57RHw=; b=nqBlYY5KvZncm+Nzp+ukGG/k2jNnBaEjt1i8vrxgIzROhwqB50gjzvfcdDMK6wC1jr 6QZYbPHvkFlCNaD5pyAOCxivjLhv3J0G4jjcgKK0mWar32XAM7SuAapRG2zh4mgIwke5 7LO0E6K1JnR3rISwrNcPK/9qucJVhI1pojUDtw/6S8+Q1y4f4G5oQGDI+TVzaGoEvOwq t1GfW08Wjosg77oKPD6nSzvr/WhBmLym1crg+4sVhiq+j5ehmKWrjG9WOfaTxFK5sFSQ UWpFxuhxtULwMiBgS9JEv2rfl/J/EQXS4fjzDNtGojoe5Gaz3cptHaF8QkdPDmV+v1Uk I7Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MWNXC5ofCyBb8jMDXVTy/I6933co+H5gBwlgyq57RHw=; b=ARQ1mnyr8IA3gNZhrtEU3CSr+Du6bTLJPRocChJpqht98qGb+yy+qFQGQcy/X5al3L 5GReEqO9GKI/TayL1RQQKAKZvayNRawjtHXy1vjXABZDoET7k1vSWos94ksNlTb8FyZo KsuD368qg04m3lLgUzY2BM4BA7i17NgJkauGVA0tDOCHG8FVi7LxGWbQQEV2wR5179bs 3xAf302BrFo7+zCvbyVeyuUy32cbYQZniFukQ0KeQ7iRNFYBbhCllPVCEdNV2mbLeWl/ TFVaIQR6TZYG8mdTGvJRY9AgNuEX92hiQDRMP6BfLh1ZCuo1j/70r/RLhn14wRqsnP5H xqCw== X-Gm-Message-State: APf1xPC8rL8kpCG8zs+lKOnggzQQ8GABaQHXcwjaHdLuTuSDAwDPift/ jaBwuJASMU606oPil5ye/PA= X-Google-Smtp-Source: AG47ELskRChuobshLgI9O3ayDJ9LHkXwzxDUcjyPBKeFwdj9hqKMJv0nP6DwngETrYZHAzgFY69X3Q== X-Received: by 10.223.160.243 with SMTP id n48mr26967233wrn.92.1520601855265; Fri, 09 Mar 2018 05:24:15 -0800 (PST) From: Andreas Christoforou To: keescook@chromium.org Cc: kernel-hardening@lists.openwall.com, Andreas Christoforou , QCA ath9k Development , Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers: net: wireless: ath: ath9k: dfs: remove VLA usage Date: Fri, 9 Mar 2018 15:23:53 +0200 Message-Id: <1520601833-4952-1-git-send-email-andreaschristofo@gmail.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP The kernel would like to have all stack VLA usage removed. This is the correct patch. Signed-off-by: Andreas Christoforou --- drivers/net/wireless/ath/ath9k/dfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/dfs.c b/drivers/net/wireless/ath/ath9k/dfs.c index 6fee9a4..eeb77f2 100644 --- a/drivers/net/wireless/ath/ath9k/dfs.c +++ b/drivers/net/wireless/ath/ath9k/dfs.c @@ -101,7 +101,7 @@ static bool ath9k_check_chirping(struct ath_softc *sc, u8 *data, int datalen, bool is_ctl, bool is_ext) { int i; - int max_bin[FFT_NUM_SAMPLES]; + int max_bin[NUM_DIFFS + 1]; struct ath_hw *ah = sc->sc_ah; struct ath_common *common = ath9k_hw_common(ah); int prev_delta;