summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-10-01 19:44:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-28 18:25:36 +0100
commit22b804cadc78d2be7bcd4b38e481f52a5b793a1d (patch)
tree111adaac04b4d4df9bae08ac1b6bdceeb0a88c7d /tools/perf/scripts/python
parentb283ffe1d5f544fb967b4be6a13f1bb50763bd0a (diff)
powerpc: Fix signedness bug in update_flash_db()
[ Upstream commit 014704e6f54189a203cc14c7c0bb411b940241bc ] 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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions