Commit f17cbe55 authored by Qiang Ma's avatar Qiang Ma Committed by Greg Kroah-Hartman
Browse files

efi/libstub: Zero initialize heap allocated struct screen_info



commit ee8b8f5d upstream.

After calling uefi interface allocate_pool to apply for memory, we
should clear 0 to prevent the possibility of using random values.

Signed-off-by: default avatarQiang Ma <maqianga@uniontech.com>
Cc: <stable@vger.kernel.org> # v6.6+
Fixes: 732ea9db ("efi: libstub: Move screen_info handling to common code")
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ea4f7794
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment