Commit 5f0ed3a8 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

mmc: core: claim mmc host while enabling clock scaling from userspace



A race condition can occur while enabling clock scaling and removal
of the card. If the card is removed just after the host->card check
is successful then there could be NULL pointer dereference later.
Claim mmc host before card availability check to avoid this race
condition.

Change-Id: I6339cad5857732ec6b66280940cd6b8b7ed30614
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent 70a5c036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment