]> git.baikalelectronics.ru Git - kernel.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)
commit7e0ed2519fd991cd8a681aa090eddf944b58fe4b
tree216aa4589286aec4cfd5878b6607b10ffe5cff4b
parentebc8d5dfca794d539abcbddcda501b174d124400
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