Commit 0db0888f authored by Brent Taylor's avatar Brent Taylor Committed by Sasha Levin
Browse files

mmc: atmel-mci: Check pdata for NULL before dereferencing it at DMA config



[ Upstream commit 93c77d29 ]

Using an at91sam9g20ek development board with DTS configuration may trigger
a kernel panic because of a NULL pointer dereference exception, while
configuring DMA. Let's fix this by adding a check for pdata before
dereferencing it.

Signed-off-by: default avatarBrent Taylor <motobud@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 7fa28eee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment