diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-07-18 23:32:21 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-07-18 23:32:21 +0000 |
commit | 677c1345d629fbf12f6c01a5c27492ec8bb4dd48 (patch) | |
tree | 9700e2b72f6cdcbcd52d3f1aaa15a4083565aaec /drivers/dahdi/wcte12xp | |
parent | e765b5118a544381e0d3a02499cad56b0d4ee15f (diff) |
wcte12xp: Close a potential race on driver unload.
The shutdown logic requires that all CPUs see that the INITIALIZED bit
has been cleared. Otherwise it may be possible for the workqueue to run
after the hardware resources have been released.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10047 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 68fcd96..056b98b 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -2686,6 +2686,7 @@ static void __devexit te12xp_remove_one(struct pci_dev *pdev) remove_sysfs_files(wc); clear_bit(INITIALIZED, &wc->bit_flags); + smp_mb__after_clear_bit(); del_timer_sync(&wc->timer); flush_workqueue(wc->wq); |