Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1816524rwe; Sat, 15 Apr 2023 06:34:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bfsRcvXL/SJZzgGW5BIQWSUP5lROohV+tE+xkKy3KNiYFeaP1byleyT2BL0wvT3BNa0PC3 X-Received: by 2002:a17:90b:30cb:b0:247:42bf:380e with SMTP id hi11-20020a17090b30cb00b0024742bf380emr5173058pjb.4.1681565664860; Sat, 15 Apr 2023 06:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681565664; cv=none; d=google.com; s=arc-20160816; b=UsGIJciKn4LPI1Zw/0+ZyG+VMQN6MLAjTFM/t06J0XgBEmZxmTdJTbcIEt7YwhP7hO g1BuZKYvNM1uUblVcxsN/n0QllmS6TdR9kEbc0sEzUCdZE6Nxi5M0c08fp6P7mOw8XlL CvpreIqAwU3F/duCBItVGR1DmwLHSFUKjPQVIXGOAQIFHPloHjxbWbDCZIGcXeIvign4 iMGtcnFLnLdQ1Eo7BN2sMmZATCwEndnQNdd6Fjd3g/RRtDiH+a9O99HtpeBnHSd3Y14e V6VLsIcbsAJzdQ3szBoYlGi3tL5qH7OBmZPX1t2yI5LsAUHeMZ9BNR0QvLS8O4Tix6Sx LETQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qzXYreqeYmp6WSmJydUbNuUOo6bx8j3ScmTlAns1itY=; b=ELvJi2NaJe7OPvUvHrPbK8EUU7ZY/GOs2mQcdCn/CNtfiO+qpgqRkzK/hj9EJLc5FS BVc5bkjKlAXKXCA3igA33YueIPqKC21WgkqAph/MIuZ77jq95n2vLlSZejcsTUupyeiT tKwGFOT0Q+RK2M1fP0eV8y2Eayp7CNFiW1Zkv8lu+6Lwbd7PpyK+FxRquEYJjVxq+Mkq 64Yj4/850eUi1hXfcTr0E4aauwfw2GudPM8pByMquyNZXFtl2HROVruWSDaihrYFzGKv ba8S0lhMl5rek6z/+bWgzgZAKPig/6Drv943NFvAdIh+xwfsqVMjNa16o31CeDxGhI7D CiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="o/5jI2eE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902c40900b001a6a46d70ccsi3692330plk.1.2023.04.15.06.34.10; Sat, 15 Apr 2023 06:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="o/5jI2eE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjDONRC (ORCPT + 99 others); Sat, 15 Apr 2023 09:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbjDONRB (ORCPT ); Sat, 15 Apr 2023 09:17:01 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E324C26 for ; Sat, 15 Apr 2023 06:16:55 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id c9so13610118ejz.1 for ; Sat, 15 Apr 2023 06:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681564614; x=1684156614; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qzXYreqeYmp6WSmJydUbNuUOo6bx8j3ScmTlAns1itY=; b=o/5jI2eEJPlGzyiPn2+Hq179ixbP06pFO7i0tRo64AQKQv3BmsoCMh3ejMG6ni1eis ZaCjqJOMxXbWgJwVMY/MTaabI4ag9AvgU1Wxf50EXAWKmT/UtbY+AGlNXOyEkSXGyJlB 7Bk59GIb9zvkEQ7HwdPbtEN1XLfZgeA1I4O1awUClFHoFrDvJmIFCMRy22D4rHrVjVFb uDzF9OXn5hQJutiMYDVgsm+KbnGDadBKoTZD5vSwR4/ukuEk+7js1z+t6xIr+Y3l19+A K3WSl2L8eJ3zPyIlq3snlEZFPL60Yn83ylLQZzXpc+xAo3oORBeoCAl3jGcjbOucK6pl 6EGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681564614; x=1684156614; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qzXYreqeYmp6WSmJydUbNuUOo6bx8j3ScmTlAns1itY=; b=lnmNJ7Ds2GTSdeCGAmXCPI7cZyJOIlJmqAuPx4WmXQlZmMQCsRR71wu3pijBNnTfD9 x0VMNZMymORX+VImT5QMMyPNUbEeRiov+rNdStINsKxJe9jlumEbYyrEqcwiLFLtkCtN 5mERBWgnMZcNLk1a12aywgEfwG2JUzT5A0gleg6igQkvPOCM23BdjK86mJFiMez0G5u+ JeCHdEK6AF3frgteRZpFr9DHzLOS2j7icp2dUOR9HRGIu1LpVHeYij/AMIo2fyNfOJyT N5GRarOkJKHQfry7AgN6scpcbrilz3KD/TRCC96iO235bKcrJ+OQ8KVCtmlllSQtPYmN 13Gw== X-Gm-Message-State: AAQBX9cB3lzCJorOQzVcQdiVo+BVPb+gGn7ef6kTk1AR0QwJYL9wZ98q 8dsB7j89UpJpnIht5VlK548= X-Received: by 2002:a17:907:7809:b0:949:c05d:73b6 with SMTP id la9-20020a170907780900b00949c05d73b6mr1872274ejc.17.1681564613546; Sat, 15 Apr 2023 06:16:53 -0700 (PDT) Received: from kernelhacking.kernelhacking.example.com (dslb-088-067-245-126.088.067.pools.vodafone-ip.de. [88.67.245.126]) by smtp.gmail.com with ESMTPSA id s24-20020a170906779800b0094edbe5c7ddsm2432788ejm.38.2023.04.15.06.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Apr 2023 06:16:53 -0700 (PDT) Date: Sat, 15 Apr 2023 13:39:38 +0200 From: Luke Koch To: Dan Carpenter Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: wlan-ng: replace rate macros Message-ID: References: <714c5d3f-438a-4633-a46e-127f876ffec4@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <714c5d3f-438a-4633-a46e-127f876ffec4@kili.mountain> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-kernel@vger.kernel.org On Sat, Apr 15, 2023 at 03:43:20PM +0300, Dan Carpenter wrote: > Writing every sentence in imperative tense makes people sound like space > aliens in human skin... You can if you want to but it's not a > requirement in staging. There are two maintainers who have that > requirement and the Outreachy people. > > - struct p80211item_uint32 basicrate1; > ^^^^^^^^^^ > This starts at 1 instead of 0. > > + for (int i = 0; i < 8; i++) { > ^^^^^ > Now it starts at zero. > > > + if (count >= i && > > + DOT11_RATE5_ISBASIC_GET(item->supprates[i - 1])) { > ^^^^^ > This is an array underflow. > > regards, > dan carpenter Thank you for the heads up on the (lack of) necessity for alienspeak and the code problem. Starting at 0 should not have made a difference but I totally missed that underflow... embarassing. I'll make sure to fix that and resubmit the revised patch. Thanks, Luke