]> 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:42:24 +0000 (11:42 +0200)
commite460b7a2e4a40b7de6b6835f04a87d55243796e8
tree8604e2aa507b0774cef2ef90dfb7eb90e8a3fd42
parentafe431e20783e3d35a9420416cda61423650ba47
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