From: Wei WANG Date: Sun, 27 Jan 2013 00:55:16 +0000 (+0100) Subject: mfd: rtsx: Fix oops when rtsx_pci_sdmmc is not probed X-Git-Tag: v3.8-rc6~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d1484f5990c094e2c706672a8d286576dd096b4;p=pandora-kernel.git mfd: rtsx: Fix oops when rtsx_pci_sdmmc is not probed If rtsx_pci_sdmmc is not probed, function pointer pcr->slots[].card_event will point to NULL, and thus rtsx_pci_card_detect will reference a NULL pointer. Check card_event pointer before referencing it can avoid kernel panic. Signed-off-by: Wei WANG Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed