mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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: [email protected] Link: https://github.com/clbr/n64bootloader/issues/5 Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>