[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200114170500.1384-1-miquel.raynal@bootlin.com>
Date: Tue, 14 Jan 2020 18:05:00 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: YueHaibing <yuehaibing@...wei.com>, miquel.raynal@...tlin.com,
richard@....at, vigneshr@...com, andrea.adami@...il.com,
bbrezillon@...nel.org
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] mtd: sharpslpart: Fix unsigned comparison to zero
On Mon, 2019-12-30 at 03:29:45 UTC, YueHaibing wrote:
> The unsigned variable log_num is being assigned a return value
> from the call to sharpsl_nand_get_logical_num that can return
> -EINVAL.
>
> Detected using Coccinelle:
> ./drivers/mtd/parsers/sharpslpart.c:207:6-13: WARNING: Unsigned expression compared with zero: log_num > 0
>
> Fixes: 8a4580e4d298 ("mtd: sharpslpart: Add sharpslpart partition parser")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
Powered by blists - more mailing lists