diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-08-23 17:30:50 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-08-23 17:30:50 +0200 |
commit | b0c7f1d9d742911dd22703bf8b25ea85ae2363dd (patch) | |
tree | 6de0444803bb3211f9914bcc610f7e4f4a150f45 /drivers/platform/x86/think-lmi.c | |
parent | 559eed7776c6557acf58e86c48ddaed9301550fd (diff) | |
parent | 0848cab765c634597636810bf76d0934003cce28 (diff) | |
download | linux-stable-b0c7f1d9d742911dd22703bf8b25ea85ae2363dd.tar.gz linux-stable-b0c7f1d9d742911dd22703bf8b25ea85ae2363dd.tar.bz2 linux-stable-b0c7f1d9d742911dd22703bf8b25ea85ae2363dd.zip |
Merge remote-tracking branch 'pdx86/fixes' into pdx86/for-next
Merge pdx86/fixes into pdx86/for-next because there are some
pdx86 patches pending for the next release which build on top
of some of the fixes.
Diffstat (limited to 'drivers/platform/x86/think-lmi.c')
-rw-r--r-- | drivers/platform/x86/think-lmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/think-lmi.c b/drivers/platform/x86/think-lmi.c index 52d1ce8dfe44..79346881cadb 100644 --- a/drivers/platform/x86/think-lmi.c +++ b/drivers/platform/x86/think-lmi.c @@ -719,12 +719,12 @@ static ssize_t cert_to_password_store(struct kobject *kobj, /* Format: 'Password,Signature' */ auth_str = kasprintf(GFP_KERNEL, "%s,%s", passwd, setting->signature); if (!auth_str) { - kfree(passwd); + kfree_sensitive(passwd); return -ENOMEM; } ret = tlmi_simple_call(LENOVO_CERT_TO_PASSWORD_GUID, auth_str); kfree(auth_str); - kfree(passwd); + kfree_sensitive(passwd); return ret ?: count; } |