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