]> git.karo-electronics.de Git - linux-beck.git/commit
wl12xx: Acquire lock before stopping plt
authorIdo Yariv <ido@wizery.com>
Wed, 11 Jan 2012 07:42:39 +0000 (09:42 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:28 +0000 (08:38 +0200)
commitf3df1331f25f782e838a3ecb72cec86b539ac02f
tree216aa4589286aec4cfd5878b6607b10ffe5cff4b
parent9e0dc890ce23e2b28ce906bb8f466ca66f420911
wl12xx: Acquire lock before stopping plt

__wl1271_plt_stop is called from both wl1271_plt_stop and
wl1271_unregister_hw. While wl1271_plt_stop acquires a mutex,
wl1271_unregister_hw does not.

Fix this by calling wl1271_plt_stop instead of __wl1271_plt_stop from
wl1271_unregister_hw.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c