[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201005082603.GA23480@willie-the-truck>
Date: Mon, 5 Oct 2020 09:26:04 +0100
From: Will Deacon <will@...nel.org>
To: Colin King <colin.king@...onical.com>
Cc: Mark Rutland <mark.rutland@....com>,
Robin Murphy <robin.murphy@....com>,
linux-arm-kernel@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] perf: arm-cmn: fix less than zero check on
unsigned dtc->irq
On Fri, Oct 02, 2020 at 04:48:00PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently the failure check on dtc->irq is always false because
> dtc->irq is an unsigned int. Fix this by using a temporary signed
> int for the less than zero error check.
>
> Addresses-Coverity: ("Unsigned compared against 0")
> Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU driver")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> ---
> drivers/perf/arm-cmn.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Cheers, but Gustavo beat you to it and I had a crack at a different fix
which should now be in -next:
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?h=for-next/core&id=d9ef632fab9ba81b708763bcbcfdbea9a55c95d2
Will
Powered by blists - more mailing lists