Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2117446imm; Sat, 13 Oct 2018 10:25:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Abl2e5c8tKyy+9VUFYy5rHkz+aciSqs72AcamaLd3IZ8gnA15e2zWnWwt3RWqLnPmYBlG X-Received: by 2002:a62:1ccb:: with SMTP id c194-v6mr10798350pfc.203.1539451521077; Sat, 13 Oct 2018 10:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539451521; cv=none; d=google.com; s=arc-20160816; b=tg9W9AT7LvvsA19R5t0IVwR8QbqX7EIsvqOFUtL2m3RTaoy2phMaFd+60hX4i7bRec eejWWZDHb7NJJcIr5oJQAzVgf6XTEh1mxZiraDH0n7z6WZLz/ODaVR48dTbaJ0IluTpv mge6eop2AZRTL0mMfxvfnCu+WT9iwa+TJpM9J4JSjEYP0TUQlgkur+DC88yq/qbmjp2F igwHEgxuy5lHNytcn087Ql7gHAKoBcCMVpu2QfDnkZMiPgrSBDY4TTqSFMJJM4WatpXI z9Io7z62ApR3/S4EsevLxC6cA7GjIBnnqSpRFU3rpWFNR62gEMIgFC1BMLqd3fsvRhSK 60sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=JYDsJe1B3KuCIvpCzP5SIIz2ac3uvyX5vvr8eIqQjX0=; b=KktR/AUVR1HVcZVcCHtBWfiAld6iCOJCAwa2fb/0t/3oVsQUt+uHQ5gqNKnttA4xHS hR1NLWKz+EWHCTTp8AAExG9JF7N0/ZT7bTLH71/s9cPgWYYJeJ/dhyOUPWt+lAOq+g1O gTi078WfwJ46sNpegSjmluSreOdm8RBnFoPUtFMnk9vPDeGbELIOjVl9YuEupu5o3YpV ANJl6GnBMxLb5KcGiModLvbJBAie969wIUwT+mTroePewj2tZwwzVcIeYo0XAKum8di+ ys3tP5yBedRs4dGmRsIFAQO2zCJ/MsvKezsWQNzF3fem4j5JG4ivdEiQNmtZTwDSlVNY RnAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=XQs+csAG; dkim=pass header.i=@codeaurora.org header.s=default header.b=SHOPCmv8; 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 e62-v6si5326192pfe.31.2018.10.13.10.25.06; Sat, 13 Oct 2018 10:25:21 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=XQs+csAG; dkim=pass header.i=@codeaurora.org header.s=default header.b=SHOPCmv8; 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 S1726883AbeJNBB3 (ORCPT + 99 others); Sat, 13 Oct 2018 21:01:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46264 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbeJNBB3 (ORCPT ); Sat, 13 Oct 2018 21:01:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2D63A60A98; Sat, 13 Oct 2018 17:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539451410; bh=HV9k4uXgpB324YotvYBNxzATJFxVQHQhrz+Ni6zVCCo=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=XQs+csAGor/Eleo96gRccW9jmH41sHGsn0M3AbUZtINTnpSSOPElAVAgaZxGHe3RN Q8mIIYlSv7dd3BejMP7I5u8JLslolruH05rcRO/DxnKbmTNM8HXMcB32Lrv9uYaDng nGXV8bD4+EITNht/7HztnXY2bC+l/pTSJXA+B6DY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-228.elisa-laajakaista.fi [88.114.240.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 11055600C1; Sat, 13 Oct 2018 17:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539451409; bh=HV9k4uXgpB324YotvYBNxzATJFxVQHQhrz+Ni6zVCCo=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=SHOPCmv8FzAXOPRlmpjzsQKxethFoeW8pj5Rn0dZCqv58MxNTkmbKf1E5qzPfJEib XA5/mmCdIGgOh/H2dn2KKdxoCDQE6ly5daKCLvpA1mQRru6Yk4z7f1HQADBl7KoYqk REWubq452jx5vvAvRRBJ7XIC1BItpBWEMBAUzW5s= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 11055600C1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: htt_rx: Fix signedness bug in ath10k_update_per_peer_tx_stats From: Kalle Valo In-Reply-To: <20181005184245.GA11700@embeddedor.com> References: <20181005184245.GA11700@embeddedor.com> To: "Gustavo A. R. Silva" Cc: "David S. Miller" , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20181013172330.2D63A60A98@smtp.codeaurora.org> Date: Sat, 13 Oct 2018 17:23:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Gustavo A. R. Silva" wrote: > Currently, the error handling for the call to function > ath10k_get_legacy_rate_idx() doesn't work because > *rate_idx* is of type u8 (8 bits, unsigned), which > makes it impossible for it to hold a value less > than 0. > > Fix this by changing the type of variable *rate_idx* > to s8 (8 bits, signed). > > Addresses-Coverity-ID: 1473914 ("Unsigned compared against 0") > Fixes: 0189dbd71cbd ("ath10k: get the legacy rate index to update the txrate table") > Signed-off-by: Gustavo A. R. Silva > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 9d9cdbf3f9ed ath10k: htt_rx: fix signedness bug in ath10k_update_per_peer_tx_stats -- https://patchwork.kernel.org/patch/10628675/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches