]> git.baikalelectronics.ru Git - 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)
commite91caa11100c7254cc418eb87c29aa8bad652767
treee754b312bf20e7294d2e096356505e773aff7117
parent6d82d3a8bb97c63e9232d2cc055f7c10001dc374
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