ixp4xx: Don't overwrite memory in wg302v1_fixup()
authorJohn Crispin <john@openwrt.org>
Wed, 19 Nov 2014 14:09:19 +0000 (14:09 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 19 Nov 2014 14:09:19 +0000 (14:09 +0000)
commitc6922b69f96a9dd4383555e841b97d7607d24881
tree07c7f37726d69956f96c023db4e0bb55f2ffec18
parent1c723819d6dcda1eae4e29a6c6b30a5973014416
ixp4xx: Don't overwrite memory in wg302v1_fixup()

wg302v1_fixup() looks for the ATAG_CMDLINE atag, it doesn't find it and
so it takes the last atag in the list and overwrites non allocated
memory.

The side effects are corrupted vital data and a kernel that doesn't
boot. More details here https://dev.openwrt.org/ticket/18356

The fix appends the fixup to the command line and updates the atag only
when it finds it.

Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
SVN-Revision: 43320
target/linux/ixp4xx/patches-3.10/162-wg302v1_mem_fixup.patch