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