Files
linux/arch/powerpc/platforms/ps3
Dan Carpenter 4505cff2ef powerpc: Fix signedness bug in update_flash_db()
[ Upstream commit 014704e6f5 ]

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 <dan.carpenter@oracle.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-01 09:16:16 +01:00
..
2006-12-04 20:40:44 +11:00
2017-04-28 21:02:25 +10:00
2016-09-20 20:57:12 +10:00
2018-06-03 20:43:34 +10:00