[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 3 Mar 2021 10:27:09 +0000
From: Colin Ian King <colin.king@...onical.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Boris Brezillon <boris.brezillon@...labora.com>,
Sascha Hauer <s.hauer@...gutronix.de>,
linux-mtd@...ts.infradead.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] mtd: nand: Fix error handling in nand_prog_page_op
On 03/03/2021 09:46, Miquel Raynal wrote:
> Hi Colin,
>
> Colin King <colin.king@...onical.com> wrote on Wed, 3 Mar 2021
> 09:42:46 +0000:
>
>> From: Colin Ian King <colin.king@...onical.com>
>>
>> The less than zero comparison with status is always false because status
>> is a u8. Fix this by using ret as the return check for the call to
>> chip->legacy.waitfunc() and checking on this and assigning status to ret
>> if it is OK.
>>
>> Addresses-Coverity: ("Unsigned compared against 0")
>> Fixes: 52f67def97f1 ("mtd: nand: fix error handling in nand_prog_page_op() #1")
>> Signed-off-by: Colin Ian King <colin.king@...onical.com>
>
> Thanks for the fix, but this has been handled just an hour ago :)
Ah, missed that. Glad to know it's fixed.
>
> Cheers,
> Miquèl
>
Powered by blists - more mailing lists