Skip to content
Commit f1473847 authored by Stefan Wahren's avatar Stefan Wahren Committed by Vinod Koul
Browse files

dmaengine: bcm2835: Avoid GFP_KERNEL in device_prep_slave_sg



The commit af19b7ce ("mmc: bcm2835: Avoid possible races on
data requests") introduces a possible circular locking dependency,
which is triggered by swapping to the sdhost interface.

So instead of reintroduce the race condition again, we could also
avoid this situation by using GFP_NOWAIT for the allocation of the
DMA buffer descriptors.

Reported-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Fixes: af19b7ce ("mmc: bcm2835: Avoid possible races on data requests")
Link: http://lists.infradead.org/pipermail/linux-rpi-kernel/2019-March/008615.html


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 79a3aaa7
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