From dd9b38039262040c02286b82c413d30b8f0cc6af Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Lanzend=C3=B6rfer?= Date: Tue, 16 Dec 2014 15:11:04 +0100 Subject: [PATCH] mmc: sunxi: Lock fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 1) Adding a comment in order to clarify the choice of the locks within sunxi_mmc_handle_manual_stop 2) As has pointed out the wait_dma variable was not accessed within the spin lock block in sunxi_mmc_request and so (even if it should never happend) it would have theoretically been possible that some other function would access the variable at the same time as the function. This has been changed now and the function is using local variables outside the lock and copys the value over during the lock phase. Signed-off-by: David Lanzendörfer Reported-by: Acked-by: Hans de Goede Signed-off-by: Ulf Hansson --- Reading git-format-patch failed