libertas: don't exit worker thread until kthread_stop() is called
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 14 Dec 2007 02:48:00 +0000 (21:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:07:26 +0000 (15:07 -0800)
The kthread code can't cope with a thread exiting of its own accord and
then someone calling kthread_stop() for it. When the thread detects that
it needs to die, make it wait for kthread_stop() to be called.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found