Skip to content
Commit eab36b24 authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent 43aaa50f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment