mtd: gpmi: add sanity check when mapping DMA for read_buf/write_buf