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

Skip to content
Commit 6f8d3ed7 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Stephen Boyd
Browse files

mmc: sdhci-msm: Fix incorrect flags passed during spin_unlock_irqrestore



Fix following bug -

foo_bar1(int arg1, unsigned long flags) {
	spin_unlock_irqrestore(lock, flags); // step 1
	<do something>;
	spin_lock_irqsave(lock, flags); // step 2
}

foo_bar() {
	unsinged long flags;
	spin_lock_irqsave(lock, flags); // step 3
	foo_bar1(arg1, flags);
	spin_unlock_irqrestore(lock, flags); // step 4
}

The "flags" might be changed in step 4 due to irqrestore and irqsave
in foo_bar1().

Change-Id: I42366f7acdde022705f4b3dd06122d54ad817078
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent ec259b30
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