Merge tag 'drm-msm-fixes-2021-04-02' of https://gitlab.freedesktop.org/drm/msm into...
[linux-2.6-microblaze.git] / drivers / mtd / nand / raw / intel-nand-controller.c
index a304fda..8b49fd5 100644 (file)
@@ -318,8 +318,10 @@ static int ebu_dma_start(struct ebu_nand_controller *ebu_host, u32 dir,
        }
 
        tx = dmaengine_prep_slave_single(chan, buf_dma, len, dir, flags);
-       if (!tx)
-               return -ENXIO;
+       if (!tx) {
+               ret = -ENXIO;
+               goto err_unmap;
+       }
 
        tx->callback = callback;
        tx->callback_param = ebu_host;