From: Doug Anderson Date: Fri, 3 Apr 2015 18:13:07 +0000 (-0700) Subject: mmc: dw_mmc: Add locking around cmd11 timer X-Git-Tag: omap-for-v4.1/fixes-rc1~178^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ba030221d23ad8e35deb66b74873b852f4d7bf;p=pandora-kernel.git mmc: dw_mmc: Add locking around cmd11 timer It is possible for the cmd11 interrupt to fire and delete the cmd11_timer before the cmd11_timer was actually setup. Let's fix this race by adding a few spinlocks. Note that the race wasn't seen in practice without adding some printk statements, but it still seems wise to fix. Fixes: 5c935165da79 ("mmc: dw_mmc: Add a timeout for sending CMD11") Signed-off-by: Doug Anderson Signed-off-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed