]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: atmel-mci: Check pdata for NULL before dereferencing it at DMA config
authorBrent Taylor <motobud@gmail.com>
Sun, 13 Mar 2016 06:25:31 +0000 (00:25 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:46:30 +0000 (15:46 -0700)
commitbd9e0da42ed600d1fb923eed254ebba03606d185
tree6df903cc2c16333859c16ffec7bc8ef4f68dc87d
parent14e28066478257171faad98fa4fb9a53e1f3393a
mmc: atmel-mci: Check pdata for NULL before dereferencing it at DMA config

Orabug: stable_rc4

[ Upstream commit 93c77d2999b09f2084b033ea6489915e0104ad9c ]

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: Brent Taylor <motobud@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 0db0888f18f37d9ee10e99a7f3e90861b4d525a2)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/mmc/host/atmel-mci.c