Subject: Re: powerpc: signedness bug in update_flash_db()

From: Michael Ellerman <[email-masked]>
Date: Mon, 15 Oct 2018 15:01:01 +1100 (AEDT)

On Mon, 2018-10-01 at 16:44:58 UTC, Dan Carpenter wrote:
> The "count < sizeof(struct os_area_db)" comparison is type promoted to
> size_t so negative values of "count" are treated as very high values and
> we accidentally return success instead of a negative error code.
> 
> This doesn't really change runtime much but it fixes a static checker
> warning.
> 
> Signed-off-by: Dan Carpenter <[email-masked]>
> Acked-by: Geoff Levand <[email-masked]>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/014704e6f54189a203cc14c7c0bb41

cheers