diff options
author | Dan Carpenter <[email protected]> | 2019-10-06 17:58:28 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-10-07 15:47:19 -0700 |
commit | 518a86713078168acd67cf50bc0b45d54b4cce6c (patch) | |
tree | 7a436f0240bb775bd7a3615224e67e8ed0041002 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 234fdce892f905cbc2674349a9eb4873e288e5b3 (diff) |
mm/vmpressure.c: fix a signedness bug in vmpressure_register_event()
The "mode" and "level" variables are enums and in this context GCC will
treat them as unsigned ints so the error handling is never triggered.
I also removed the bogus initializer because it isn't required any more
and it's sort of confusing.
[[email protected]: reduce implicit and explicit typecasting]
[[email protected]: fix return value, add comment, per Matthew]
Link: http://lkml.kernel.org/r/20190925110449.GO3264@mwanda
Fixes: 3cadfa2b9497 ("mm/vmpressure.c: convert to use match_string() helper")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Acked-by: David Rientjes <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Enrico Weigelt <[email protected]>
Cc: Kate Stewart <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions