summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2016-06-17 18:44:14 -0700
committerKyle Yan <kyan@codeaurora.org>2016-06-21 15:14:34 -0700
commit479ce8b7e82a3814e53a5ad41082bb537b990de7 (patch)
tree687c17495f331c5f204f909f33f667ac0e91928f /tools/perf/scripts/python
parent3351162b699c4c0e10fa734e70e0626a28efada6 (diff)
mmc: host: sdhci-msm: fix NULL pointer dereference
We are seeing the kernel panic due to NULL pointer dereference with following call trace: sdhci_msm_set_clock+0x59c/0xa28 sdhci_do_set_ios+0xf4/0x740 sdhci_set_ios+0x28/0x3c mmc_set_ios+0xac/0x1ec __mmc_set_clock+0x2c/0x3c mmc_ungate_clock+0x20/0x28 mmc_host_clk_hold+0x54/0xc4 mmc_power_off+0x1c/0x70 mmc_rescan+0x250/0x27c process_one_work+0x240/0x420 worker_thread+0x268/0x390 kthread+0xf8/0x100 This is happending when eMMC initialization is failing in HS400 mode. sdhci_msm_set_clock() might be accessing the card pointer after it was deallocated, this change adds the safety checks to avoid NULL dereference. Change-Id: I895b8b33cce4173100d58acf690e57b5f4e69081 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions