From: Sergei Antonov <[email protected]>

commit c13d845e9a69580424d40b7b101c37d4f71bcd63 upstream.

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed 
up.

Fixes: 8fae856c53500 ("mtd: rawnand: meson: add support for Amlogic NAND flash 
controller")
Cc: [email protected]
Signed-off-by: Sergei Antonov <[email protected]>
Acked-by: Liang Yang <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/mtd/nand/raw/meson_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/mtd/nand/raw/meson_nand.c
+++ b/drivers/mtd/nand/raw/meson_nand.c
@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(st
 }
 
 static void meson_nfc_dma_buffer_release(struct nand_chip *nand,
-                                        int infolen, int datalen,
+                                        int datalen, int infolen,
                                         enum dma_data_direction dir)
 {
        struct meson_nfc *nfc = nand_get_controller_data(nand);


Reply via email to