]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit7e4be1290a38b3dd4a77cdf4565c9ffe7e620013
tree7c3950220a6bd5b2676469b40ad86da1cf593bd1
parente773ca7da8beeca7f17fe4c9d1284a2b66839cc1
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: d2fb0a043838 ("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