]> git.baikalelectronics.ru Git - kernel.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 17 Mar 2016 13:54:41 +0000 (14:54 +0100)
commit3d9a5a51c8c21950431ea559162d2b8a3486070b
tree899819f6c2b1a65c8881a6c83f5f1023a793a9d3
parentb4c648fe96ec3c004fc98e921176deae0d9497fd
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>
drivers/mmc/host/atmel-mci.c