platform/x86: think-lmi: Use kfree_sensitive instead of kfree
authorWang Ming <machel@vivo.com>
Mon, 17 Jul 2023 10:11:02 +0000 (18:11 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 25 Jul 2023 13:30:57 +0000 (15:30 +0200)
commit1da0893aed2e48e2bdf37c29b029f2e060d25927
tree4bd1b1a61f42a4bb7b945104530cef708b2d6472
parent7783e97f8558ad7a4d1748922461bc88483fbcdf
platform/x86: think-lmi: Use kfree_sensitive instead of kfree

key might contain private part of the key, so better use
kfree_sensitive to free it.

Signed-off-by: Wang Ming <machel@vivo.com>
Link: https://lore.kernel.org/r/20230717101114.18966-1-machel@vivo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/think-lmi.c