commit | f1490b00d69aa71d137801c7408aa0cbb730619e | [log] [tgz] |
---|---|---|
author | Sujit Reddy Thumma <sthumma@codeaurora.org> | Wed Dec 12 09:16:58 2012 +0530 |
committer | Sujit Reddy Thumma <sthumma@codeaurora.org> | Wed Dec 12 09:24:49 2012 +0530 |
tree | 1bb7dd940002ecbd9770f5c4f7617bdc231cefba | |
parent | c03603b5ddf6f90808fd803e76d014cf04642866 [diff] |
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: Sujit Reddy Thumma <sthumma@codeaurora.org>