DHDAXCW-Rockchip-OpenWrt/target/linux/generic/hack-4.9/420-allow-ubi-mlc-support.patch
CN_SZTL 0625c87abb
kernel: bump 4.9 to 4.9.212 (#2964)
* kernel: bump 4.9 to 4.9.212

Refreshed all patches.

Fixes:
- CVE-2019-14896
- CVE-2019-14897

Compile-tested on: x86_64
Runtime-tested on: none

Signed-off-by: CN_SZTL <cnsztl@gmail.com>

* kernel4.9: remove patches for layerscape
2020-02-13 18:00:21 +08:00

14 lines
519 B
Diff

--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -900,9 +900,8 @@ int ubi_attach_mtd_dev(struct mtd_info *
* will die soon and you will lose all your data.
*/
if (mtd->type == MTD_MLCNANDFLASH) {
- pr_err("ubi: refuse attaching mtd%d - MLC NAND is not supported\n",
+ pr_warn("ubi: mtd%d has been identified as a MLC NAND!! - MLC is not supported by UBI and UBIFS and _WILL_ cause corruption in the near future!\n",
mtd->index);
- return -EINVAL;
}
if (ubi_num == UBI_DEV_NUM_AUTO) {