diff options
author | 2013-01-27 01:55:16 +0100 | |
---|---|---|
committer | 2013-01-27 02:18:07 +0100 | |
commit | 2d1484f5990c094e2c706672a8d286576dd096b4 (patch) | |
tree | c818af028139077880e8f09d7164bcc8774c7e0c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mfd: wm5102: Fix definition of WM5102_MAX_REGISTER (diff) | |
download | linux-dev-2d1484f5990c094e2c706672a8d286576dd096b4.tar.xz linux-dev-2d1484f5990c094e2c706672a8d286576dd096b4.zip |
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 <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions