Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: fw: Allow firmware to pass a empty env
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: clbr/n64bootloader#5 Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
- Loading branch information