openwrtv4/target/linux/ipq806x
Jonas Gorski 532eb5f581 ipq806x: fix boot hang if cmdline contains words with r in the middle
The ATB DTB mangle code will enter an infinite loop if it encounters a
word in the command line that contains an r in the middle of the word.

Fix this by increasing ptr everytime before invoking strchr, ot avoid
finding the same r again.

This fixes booting at least on Netgear R7500v1, which contains
"ubi.mtd=rootfs" in its commandline, triggering the misbehaviour.

Fixes: 0ddcbee261 ("ipq806x: activate ATAG DTB mangle and EA8500 rootblock in dts")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-01 00:13:35 +02:00
..
base-files ipq806x: enable ieee80211 phy hotplug and patch macaddress 2016-06-22 19:32:06 +02:00
files/arch/arm/boot/dts ipq806x: add initial support for Netgear R7800 2016-06-22 19:32:06 +02:00
image ipq806x: add missing sysupgrade-nand => sysupgrade-tar change 2016-07-31 13:05:11 +02:00
patches-4.4 ipq806x: fix boot hang if cmdline contains words with r in the middle 2016-08-01 00:13:35 +02:00
profiles ipq806x: enable ath10k firmware for 988x, 99x0 and 9984 by default 2016-07-04 11:41:32 +02:00
config-4.4 ipq806x: activate ATAG DTB mangle and EA8500 rootblock in dts 2016-06-17 04:13:07 +02:00
Makefile ipq806x: change compiler flags to arm cortex-a15 2016-07-17 17:29:12 +02:00
modules.mk ipq806x: modules: fix typo in usb-dwc3-qcom dependencies 2015-09-10 10:09:36 +00:00