summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2019-08-23 11:59:09 +0300
committerLuca Coelho <luciano.coelho@intel.com>2019-10-09 13:01:04 +0300
commit3ed83da39aed275a5b74c74f77e85c839ad2efe9 (patch)
treee848c28efad253875f33d4f3d28361125d9e2bd2 /tools/perf/scripts/python
parent1fee35d04a42290a3c44b8a4e3c66dbdd6180c42 (diff)
downloadlinux-3ed83da39aed275a5b74c74f77e85c839ad2efe9.tar.xz
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 <dan.carpenter@oracle.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions