Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6f1bb8a9 authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Stephen Boyd
Browse files

mmc: msm_sdcc: prevent possible NULL pointer access



mmc_signal_sdio_irq() should only be called if SDIO interrupt is
received for SDIO card. If mmc_signal_sdio_irq() function is called
when card is not present or for non-SDIO card, it may result into
NULL pointer access (due to uninitialized spin lock access) inside
mmc_signal_sdio_irq() function.

This change fixes the above issue by adding relevant safety checks in
driver.

CRs-Fixed: 423795
Change-Id: I1829acd81f91b4d0e01d509dd9e0926547cec7a0
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 056d45c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment