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: 0ddcbee26151 ("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
..
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-05-27 15:50:17 +02:00
2016-06-13 22:51:42 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-05-27 15:50:17 +02:00
2016-06-26 18:20:37 +02:00
2016-06-20 11:45:44 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-06-26 18:20:37 +02:00
2016-07-17 17:29:12 +02:00
2016-08-01 00:13:35 +02:00