]> 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)
commitab0703f6affb3d403e6a301e3b95b3d1667f74ef
treee754b312bf20e7294d2e096356505e773aff7117
parent5a56d79df1982872afb3624474668da231b650bb
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