Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp927111pxb; Wed, 6 Apr 2022 04:31:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpJdocqRlW+rPBw4VD0XluA32MTFVf/bS81IHrMvo7ZEVr2eDYYqNXdniEzWWxRCk+Adf8 X-Received: by 2002:a65:55c4:0:b0:381:71f9:cd35 with SMTP id k4-20020a6555c4000000b0038171f9cd35mr6513964pgs.94.1649244682684; Wed, 06 Apr 2022 04:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244682; cv=none; d=google.com; s=arc-20160816; b=uhsT27380piE+ogaEON0u9wFRQwiqDCGOFIr5/KLbA0DYUeJFSwEafrFwmiqLw/v7Q +MbF6RWEvtBKSFoBKcyDu1urPwaCRx07ByaeBDBIt0G2MBhFdQngdG9/QDZ2GKxam81W P1XYZQ2OsPmWZ+FIfM3YmMx7BO4G1ed8rLQgU0JxfJ2ZSS5U05ncuvMgemAMjnN0CXjb mrmF8iSlo5nRjkysCZajytbacf8s5E2SOYcqFl2c8qMaF0MukbzWQeNRPpB6ucO33pEO Bk+oGm3lVAAOJd/l9xV2kkgHqpyhoZjiasFzzOvEVIpeM5oC+FnT20IznqDfkwOrU5YE JINw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=nqSNpZUYa15jc1r1KsKxXRNob2r5GycPU1hZtLnFTY0=; b=P2ACWGbvPks/yrofwV7nTVizUULYHxAGtLOOGQ1KQ5ltPIPcT9Bqd67n/mQ8WqH5gR gBmOWfvLeDBABCXef1XBDgqyUH/CMeKntU8Vl/35EHZsHOFn1t8LMhVLtodgym3i9kDM qjgsPAfoCKjtbgcQFFhkkA/QCviAaNkgwH3jijrRWLEkIHF16i5xA+iSQ7TZ4ie3VaZ/ Lj+jjqlt12tvQOj0ozdbUGAhAs975OwbsJJaqx01xj2hIhKfkkYA3io/hsSteePVULgP 4MfvHwtJFjeyUQ9XRyzvRvtJ0H8Ho9Wqgy3R9a22f0NQtYcGunYJKTDmk6NRt+Nj+Mrn ekpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=x1wbzqS9; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y11-20020a1709029b8b00b00156af8ef4d0si7395850plp.8.2022.04.06.04.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:31:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=x1wbzqS9; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B3A76089A1; Wed, 6 Apr 2022 02:53:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352473AbiDFDHz (ORCPT + 69 others); Tue, 5 Apr 2022 23:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376730AbiDEUuP (ORCPT ); Tue, 5 Apr 2022 16:50:15 -0400 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66A38FED; Tue, 5 Apr 2022 13:27:43 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1649190461; bh=nqSNpZUYa15jc1r1KsKxXRNob2r5GycPU1hZtLnFTY0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=x1wbzqS91lCyk12gCiBfIbywrwtN6fUVHpZBegaLMEy7Bz9Q9blZnokTdh+i27Agy zmPDF+jb0LWIbcb/qDtV48Z3vkA5AxeP/LzXZppHmmWnhlL5a3r9ORAYz6039Qjznw +lmRHDYVrpWkZSCNHQ9I40W76Fq4IICzBttjbgxJvt30MQn7roYNowipE6poMOCnT4 YaU9eTbUE6BLQJF93mvk5kQcw+nzHZ4EU0VHBOEwuvy4R+G+6Cl/0uBXFizgXu8X+V quYgHL61oZNy4HKDADG47DLu8skRCyIYVsPKRBrnzOV7WsY46cb8QA2UBGvJYakj2h XRUH7fxYjzgnA== To: Peter Seiderer , linux-wireless@vger.kernel.org Cc: Kalle Valo , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Johannes Berg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] ath9k: fix ath_get_rate_txpower() to respect the rate list end tag In-Reply-To: <20220402153014.31332-1-ps.report@gmx.net> References: <20220402153014.31332-1-ps.report@gmx.net> Date: Tue, 05 Apr 2022 22:27:41 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87pmlvcm2q.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Peter Seiderer writes: > Stop reading (and copying) from ieee80211_tx_rate to ath_tx_info.rates > after list end tag (count =3D=3D 0, idx < 0), prevents copying of garbage > to card registers. > > Note: no need to write to the remaining ath_tx_info.rates entries > as the complete ath_tx_info struct is already initialized to zero from > both call sites. > > Signed-off-by: Peter Seiderer Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen