Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: core: Fix NULL pointer dereference issue with mmc_blk_reset()
If the mmc_hw_reset() fails, then host->card might be NULL in some cases. Hence, check for reset errors and report it to the caller so that the current request can be aborted and also check for host->card before accessing it so as to prevent NULL pointer dereference issue. Signed-off-by: Sahitya Tummala <[email protected]> Signed-off-by: franciscofranco <[email protected]>
- Loading branch information