dmaengine: idma64: Add check for dma_set_max_seg_size
authorChen Ni <nichen@iscas.ac.cn>
Wed, 3 Apr 2024 02:49:32 +0000 (02:49 +0000)
committerVinod Koul <vkoul@kernel.org>
Sun, 7 Apr 2024 08:09:55 +0000 (13:39 +0530)
commit2b1c1cf08a0addb6df42f16b37133dc7a351de29
treedd4a40fd28604084c039acc56d1993c86feff8b9
parentc863062cf8250d8330859fc1d730b2aed3313bcd
dmaengine: idma64: Add check for dma_set_max_seg_size

As the possible failure of the dma_set_max_seg_size(), it should be
better to check the return value of the dma_set_max_seg_size().

Fixes: e3fdb1894cfa ("dmaengine: idma64: set maximum allowed segment size for DMA")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240403024932.3342606-1-nichen@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idma64.c