Skip to content
Commit 3770d92b authored by Michael Walle's avatar Michael Walle Committed by Vinod Koul
Browse files

dmaengine: at_xdma: handle errors of at_xdmac_alloc_desc() correctly



It seems that it is valid to have less than the requested number of
descriptors. But what is not valid and leads to subsequent errors is to
have zero descriptors. In that case, abort the probing.

Fixes: e1f7c9ee ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver")
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220526135111.1470926-1-michael@walle.cc


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 09f7b80f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment