summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-04-03 20:10:08 +0000
committerShaun Ruffell <sruffell@digium.com>2012-04-03 20:10:08 +0000
commite82b302fcd78f7265a086220d017042806cf2869 (patch)
treed1855dd67a3384a9524736d4ff6cdc5bd55d7de1 /README
parent3625c5dc5d694ffc3795b5f46c3b0e97686374e9 (diff)
dahdi_dynamic: Remove calls to __module_get().
The board drivers are the ones calling the unregister function, and therefore we do not need to worry about them unloading while calling the destroy callback. When destroying spans with the ioctl, replace __module_get() with try_module_get. This avoids hitting a BUG in module_get on kernel versions < 2.6.29. ALSO move the call to try_module_get out of the dahdi_dynamic_release function and into destroy. This way if the destroy callback isn't called because the dynamic driver is unloading the dynamic device can be left on the list to be cleaned up by the dahdi_dynamic_unregister_driver function(). Signed-off-by: Shaun Ruffell <sruffell@digium.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10624 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10629 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions