]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-spear: Fix NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 25 Feb 2014 09:48:21 +0000 (15:18 +0530)
committerChris Ball <chris@printf.net>
Tue, 25 Feb 2014 20:42:52 +0000 (15:42 -0500)
commit567a14924d62452b5fc19081506033c05fa2a4f9
tree3db0d2587be822e117f323ef1dce50fd94532356
parentfa1d6e1c82a3817773e70e8589d51c6964fb77ce
mmc: sdhci-spear: Fix NULL pointer dereference

pdata could be NULL if cd_gpio = -1. Dereference pdata only
if it is not NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-spear.c