commit | eab36b2478aaed00ef381f4e855d4e0c14778a32 | [log] [tgz] |
---|---|---|
author | Sachin Kamat <sachin.kamat@linaro.org> | Tue Feb 25 15:18:21 2014 +0530 |
committer | Chris Ball <chris@printf.net> | Tue Feb 25 15:42:52 2014 -0500 |
tree | 3db0d2587be822e117f323ef1dce50fd94532356 | |
parent | 43aaa50f17c38c16cce2a9a3e73909b7937892a3 [diff] |
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>