diff options
author | Colin Ian King <[email protected]> | 2019-10-08 11:01:53 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-10-08 13:01:09 +0200 |
commit | be59d57f98065af0b8472f66a0a969207b168680 (patch) | |
tree | 059ab0079c0bf54693999e8016d82b03ef52577b /tools/perf/util/trace-event-scripting.c | |
parent | 2ecb7402cfc7f22764e7bbc80790e66eadb20560 (diff) |
efi/tpm: Fix sanity check of unsigned tbl_size being less than zero
Currently the check for tbl_size being less than zero is always false
because tbl_size is unsigned. Fix this by making it a signed int.
Addresses-Coverity: ("Unsigned compared against 0")
Signed-off-by: Colin Ian King <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Jerry Snitselaar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: e658c82be556 ("efi/tpm: Only set 'efi_tpm_final_log_size' after successful event log parsing")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions