https://github.com/torvalds/linux
Revision 2d1484f5990c094e2c706672a8d286576dd096b4 authored by Wei WANG on 27 January 2013, 00:55:16 UTC, committed by Samuel Ortiz on 27 January 2013, 01:18:07 UTC
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 <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent ff0decd
History
Tip revision: 2d1484f5990c094e2c706672a8d286576dd096b4 authored by Wei WANG on 27 January 2013, 00:55:16 UTC
mfd: rtsx: Fix oops when rtsx_pci_sdmmc is not probed
Tip revision: 2d1484f
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 234.2 KB
Makefile -rw-r--r-- 46.9 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top