]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
efi/libstub: Handle NULL cmdline
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 29 Jul 2020 19:33:00 +0000 (15:33 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 20 Aug 2020 09:18:55 +0000 (11:18 +0200)
commita37ca6a2af9df2972372b918f09390c9303acfbd
treee754b312bf20e7294d2e096356505e773aff7117
parent1fd9717d75df68e3c3509b8e7b1138ca63472f88
efi/libstub: Handle NULL cmdline

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>
drivers/firmware/efi/libstub/efi-stub-helper.c