mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
MIPS: FW: Fix parsing u-boot environment
When reading u-boot's key=value pairs it should skip the '=' and not use the next argument. Signed-off-by: Alban Bedel <albeu@free.fr> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8357/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e2afb7de6e
commit
4a792e56cf
@ -68,7 +68,7 @@ char *fw_getenv(char *envname)
|
||||
result = fw_envp(index + 1);
|
||||
break;
|
||||
} else if (fw_envp(index)[i] == '=') {
|
||||
result = (fw_envp(index + 1) + i);
|
||||
result = fw_envp(index) + i + 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user