Skip to content
Commit a650031a authored by Akinobu Mita's avatar Akinobu Mita Committed by Pierre Ossman
Browse files

mmc_test: initialize mmc_test_lock statically



The mutex mmc_test_lock is initialized at every time mmc_test device
is probed. Probing another mmc_test device may break the mutex, if
the probe function is called while the mutex is locked.

This patch fixes it by statically initializing mmc_test_lock.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 9d4e98e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment