Skip to content
Commit dd9b3803 authored by David Lanzendörfer's avatar David Lanzendörfer Committed by Ulf Hansson
Browse files

mmc: sunxi: Lock fix



1) Adding a comment in order to clarify the choice of the locks within
sunxi_mmc_handle_manual_stop

2) As <lixiang@allwinnertech.com> 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: default avatarDavid Lanzendörfer <david.lanzendoerfer@o2s.ch>
Reported-by: default avatar <lixiang@allwinnertech.com>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent e8a59049
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment