]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:34 +0000 (13:39 +0200)
commit6bc7423ffdabb4ea6b370efffa2736784b3e4d6c
tree3479be938df42600640329a8d34d99b3cb133641
parent902f6d656441a511ac25c6cffce74496db10a078
dmaengine: idma64: Add check for dma_set_max_seg_size

[ Upstream commit 2b1c1cf08a0addb6df42f16b37133dc7a351de29 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idma64.c