[U-Boot] [PATCH v2 03/21] mtd: Add sanity checks in mtd_write/read_oob()