mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:40:19 -04:00
staging: wilc1000: txq_event: Fix coding error
Fix incorrect usage of completion interface by replacing 'wait_for_completion' with 'complete'. This error was introduced accidentally while replacing semaphores with mutexes. Reported-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e9d766b965
commit
23535c1322
@@ -648,7 +648,7 @@ void wilc1000_wlan_deinit(struct net_device *dev)
|
||||
mutex_unlock(&wl->hif_cs);
|
||||
}
|
||||
if (&wl->txq_event)
|
||||
wait_for_completion(&wl->txq_event);
|
||||
complete(&wl->txq_event);
|
||||
|
||||
wlan_deinitialize_threads(dev);
|
||||
deinit_irq(dev);
|
||||
|
||||
Reference in New Issue
Block a user