linux-stable/arch/mips/fw
Jiaxun Yang a6b54af407 MIPS: fw: Allow firmware to pass a empty env
commit ee1809ed7b upstream.

fw_getenv will use env entry to determine style of env,
however it is legal for firmware to just pass a empty list.

Check if first entry exist before running strchr to avoid
null pointer dereference.

Cc: stable@vger.kernel.org
Link: https://github.com/clbr/n64bootloader/issues/5
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:01 +09:00
..
arc MIPS: fix typos in comments 2022-05-04 22:22:59 +02:00
cfe MIPS: CFE: Add cfe_die() 2022-07-17 14:52:47 +02:00
lib MIPS: fw: Allow firmware to pass a empty env 2023-05-11 23:03:01 +09:00
sni MIPS: Remove empty prom_free_prom_memory functions 2021-01-07 17:11:33 +01:00