commit | 28f3d01eca5269b01e33c1bf976d90c33b546ad9 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Mon Jun 13 14:27:18 2016 +0000 |
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | Mon Jul 11 08:39:53 2016 +0200 |
tree | 6b804c01fba0bff6bb5072e8d1bac21ca27fb06a | |
parent | bc265323deace1f1472832a87458688796318c47 [diff] |
mtd: nand: sunxi: fix return value check in sunxi_nfc_dma_op_prepare() In case of error, the function dmaengine_prep_slave_sg() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA assisted operations") Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>