]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: fix error codes in channel_register()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Nov 2020 10:16:31 +0000 (13:16 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Nov 2020 12:21:51 +0000 (17:51 +0530)
commitd4495e3772675287747fd5321d39e5c8b12eb55d
tree7c3950220a6bd5b2676469b40ad86da1cf593bd1
parent9aeb309558ca0b52d78b11d115e9f7678ed36e13
dmaengine: fix error codes in channel_register()

The error codes were not set on some of these error paths.

Also the error handling was more confusing than it needed to be so I
cleaned it up and shuffled it around a bit.

Fixes: 046dc9f67317 ("dmaengine: break out channel registration")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201113101631.GE168908@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c