mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
gsmi: fix null-deref in gsmi_get_variable
commita769b05eeeupstream. We can get EFI variables without fetching the attribute, so we must allow for that in gsmi. commit859748255b("efi: pstore: Omit efivars caching EFI varstore access layer") added a new get_variable call with attr=NULL, which triggers panic in gsmi. Fixes:74c5b31c66("driver: Google EFI SMI") Cc: stable <stable@kernel.org> Signed-off-by: Khazhismel Kumykov <khazhy@google.com> Link: https://lore.kernel.org/r/20230118010212.1268474-1-khazhy@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c5aaff754
commit
6646d769fd
1 changed files with 4 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue