kernel: Fix environment pointer setup in ar71xx/ath79
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Oct 2015 10:39:41 +0000 (10:39 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Oct 2015 10:39:41 +0000 (10:39 +0000)
commit31bcaec65b9f534fafc63ba708b432c703e9b073
tree7489012a35c1a03a91125fc83fb8d5afc2528eaf
parent69244c7999b592a4b3a154aeb035eecaa26773c0
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47270 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/patches-4.1/508-MIPS-ath79-prom-image-command-line-hack.patch