kernel: Fix environment pointer setup in ar71xx/ath79
authorJohn Crispin <john@openwrt.org>
Mon, 26 Oct 2015 10:39:41 +0000 (10:39 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 26 Oct 2015 10:39:41 +0000 (10:39 +0000)
commitc89fc7a75a13c18b9bb219b52e4c3828dc8988b5
treeb5d57427823e4f28bebcaa2764356f000d4be801
parent06b032d6dcb8d7a610af08a7a28561e7bcd5b2de
kernel: Fix environment pointer setup in ar71xx/ath79

Observed on ar71xx/ath79 platforms such as Ubiquiti RouterStations.Reported in #20642.:
(https://dev.openwrt.org/ticket/20642).

If embedded command-line text exists with CONFIG_IMAGE_CMDLINE_HACK=y,firmware
init doesn't initialize environment pointer (fw_init_cmdline not called).

arcs_cmdline is not initialized before calling strlcat.

Signed-off-by: Ted Hess <thess@kitschensync.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 47270
target/linux/ar71xx/patches-4.1/508-MIPS-ath79-prom-image-command-line-hack.patch