]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi/libstub: Handle NULL cmdline
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 29 Jul 2020 19:33:00 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:49:19 +0000 (11:49 +0200)
commitca60a5eb83720d0eb425e6192723afa77ac86a73
treea3e302cd33512e1144a4985ba2f8bbfa7c7cc8a7
parent3bff856ba44d73cf6b17a8232d7ce444a7f21907
efi/libstub: Handle NULL cmdline

commit a37ca6a2af9df2972372b918f09390c9303acfbd upstream.

Treat a NULL cmdline the same as empty. Although this is unlikely to
happen in practice, the x86 kernel entry does check for NULL cmdline and
handles it, so do it here as well.

Cc: <stable@vger.kernel.org>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200729193300.598448-1-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/efi-stub-helper.c