ipq806x: rework rootfs conflicts patch for smem
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 16 Jan 2022 02:54:58 +0000 (03:54 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 27 Mar 2022 15:16:07 +0000 (16:16 +0100)
commite86dfd0a44b8dece1bee04f34762888ce92732a4
tree16b43e4817a5da3e86a08ab753cb5eaeb11c8b7e
parent8cc2caed58e79ac24f9f5a075c6a12b07453c923
ipq806x: rework rootfs conflicts patch for smem

Now that smem actually free the leaked parts, when
a rootfs partition is detected, the kernel panics as
it try to free the static space allocated for the "ubi"
name. Change the logic and fix the name at the allocate_partition
function to correctly free the space allocated by smem.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
target/linux/ipq806x/patches-5.15/102-mtd-rootfs-conflicts-with-OpenWrt-auto-mounting.patch