From: Sachin Kamat Date: Tue, 25 Feb 2014 09:48:21 +0000 (+0530) Subject: mmc: sdhci-spear: Fix NULL pointer dereference X-Git-Tag: v3.15-rc1~42^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab36b2478aaed00ef381f4e855d4e0c14778a32;p=pandora-kernel.git 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 Acked-by: Viresh Kumar Signed-off-by: Chris Ball --- Reading git-diff-tree failed