drivers: mtd: fix error handling and curr_off computation when cross page writing
drivers: mtd: fix error handling and curr_off computation when cross page writing

raphui/rnk,raphui/rnk,raphui/rnk,raphui/rnk