diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2013-10-14 18:51:45 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-15 16:42:12 (GMT) |
commit | 17f3ced05f5ae20c619103df9718af597cf83ac4 (patch) | |
tree | 5413e09b5de5d72151b997d5ad75f9c8e79d0b1f /drivers/staging/vt6656/bssdb.c | |
parent | 759e9eba4380420ee6c33873cde1b503d5962154 (diff) | |
download | linux-fsl-qoriq-17f3ced05f5ae20c619103df9718af597cf83ac4.tar.xz |
staging: vt6656: return from workqueues on fMP_DISCONNECTED
Return from work queues on flag fMP_DISCONNECTED to prevent
any scheduling threads past closing of device.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/bssdb.c')
-rw-r--r-- | drivers/staging/vt6656/bssdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c index ae0438a..e120eb2 100644 --- a/drivers/staging/vt6656/bssdb.c +++ b/drivers/staging/vt6656/bssdb.c @@ -824,6 +824,9 @@ void BSSvSecondCallBack(struct work_struct *work) u32 uNonShortSlotSTACnt = 0; u32 uLongPreambleSTACnt = 0; + if (pDevice->Flags & fMP_DISCONNECTED) + return; + spin_lock_irq(&pDevice->lock); pDevice->uAssocCount = 0; |