efi/printf: Handle null string input
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 18 May 2020 19:07:05 +0000 (15:07 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 08:31:50 +0000 (10:31 +0200)
commitfb031937a86874e6d663542bdbd83e310c13610e
tree99c883ef67c70364f3234b95cf9f5ac2da168198
parentdec6119952eab7257624de5bd116a9e301ead5b7
efi/printf: Handle null string input

Print "(null)" for 's' if the input is a NULL pointer.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-14-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/vsprintf.c