diff options
author | Brent Taylor <motobud@gmail.com> | 2016-03-13 00:25:31 -0600 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-03-17 14:54:41 +0100 |
commit | 93c77d2999b09f2084b033ea6489915e0104ad9c (patch) | |
tree | 899819f6c2b1a65c8881a6c83f5f1023a793a9d3 /drivers/mmc/card/block.c | |
parent | mmc: core: remove redundant memset of sdio_read_cccr (diff) | |
download | linux-dev-93c77d2999b09f2084b033ea6489915e0104ad9c.tar.xz linux-dev-93c77d2999b09f2084b033ea6489915e0104ad9c.zip |
mmc: atmel-mci: Check pdata for NULL before dereferencing it at DMA config
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>
Diffstat (limited to 'drivers/mmc/card/block.c')
0 files changed, 0 insertions, 0 deletions