aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorJiaxun Yang <[email protected]>2023-04-11 12:14:26 +0100
committerThomas Bogendoerfer <[email protected]>2023-04-12 15:07:36 +0200
commitee1809ed7bc456a72dc8410b475b73021a3a68d5 (patch)
tree2332247e9e0986d219a99a0067bb4bf8f5ed9cc2 /drivers/cdx/controller/cdx_controller.c
parent7fb6f7b0af6742601e0efe315c78c26e88d30ff1 (diff)
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: [email protected] Link: https://github.com/clbr/n64bootloader/issues/5 Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions