diff options
author | Luca Coelho <[email protected]> | 2019-08-23 11:59:09 +0300 |
---|---|---|
committer | Luca Coelho <[email protected]> | 2019-10-09 13:01:04 +0300 |
commit | 3ed83da39aed275a5b74c74f77e85c839ad2efe9 (patch) | |
tree | e848c28efad253875f33d4f3d28361125d9e2bd2 /tools/perf/util/trace-event-scripting.c | |
parent | 1fee35d04a42290a3c44b8a4e3c66dbdd6180c42 (diff) |
iwlwifi: fix ACPI table revision checks
We can't check for the ACPI table revision validity in the same if
where we check if the package was read correctly, because we return
PTR_ERR(pkg) and if the table is not valid but the pointer is, we
would return a valid pointer as an error. Fix that by moving the
table checks to a separate if and return -EINVAL if it's not valid.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions