diff options
author | Hans de Goede <[email protected]> | 2021-06-09 17:17:51 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-06-16 17:47:55 +0200 |
commit | 86bb2e3daf5d84c02ef40da8bf26f7b851aaa8a7 (patch) | |
tree | 3a75adcf645134c09a5709f6e01c69cd800b9bac /tools/perf/scripts/python/export-to-sqlite.py | |
parent | cb58c277ff1a35432cd84a6cc9768c60ce4c2cad (diff) |
platform/x86: think-lmi: Fix check for admin password being set
tlmi_priv.pwd_admin->password is an array (not a pointer), so the correct
way to check for the password being set is to check for
tlmi_priv.pwd_admin->password[0] != 0.
For the second check, replace the check with checking that auth_str is
set instead.
Cc: Mark Pearson <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reported-by: coverity-bot <[email protected]>
Addresses-Coverity-ID: 1505158 ("NO_EFFECT")
Fixes: a7314b3b1d8a ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions