diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-01-26 19:44:36 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-01-26 19:44:36 +0000 |
commit | b19785437da38b006e18c54cfe03e3930f0ea19c (patch) | |
tree | a20affbdb276a90ffdba354caf4c65130589553a /drivers/dahdi/dahdi_dynamic.c | |
parent | efc6334542ec679ce5c169b3fd0e3a6532ff53f9 (diff) |
Manipulate the REGISTERED flag with atomic bitops now since the bit is set
outside the protection of any locks.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5819 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic.c')
-rw-r--r-- | drivers/dahdi/dahdi_dynamic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi_dynamic.c b/drivers/dahdi/dahdi_dynamic.c index 4a52983..2e674fa 100644 --- a/drivers/dahdi/dahdi_dynamic.c +++ b/drivers/dahdi/dahdi_dynamic.c @@ -414,7 +414,7 @@ static void dynamic_destroy(struct dahdi_dynamic *z) unsigned int x; /* Unregister span if appropriate */ - if (z->span.flags & DAHDI_FLAG_REGISTERED) + if (test_bit(DAHDI_FLAGBIT_REGISTERED, &z->span.flags)) dahdi_unregister(&z->span); /* Destroy the pvt stuff if there */ |