summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-04-03 19:44:27 +0000
committerShaun Ruffell <sruffell@digium.com>2012-04-03 19:44:27 +0000
commit5a9e9d4f8b7c38a9fff9e4c2c4499dcdee82d2e6 (patch)
tree8614408a2988c4c3c14d3d5bdfc3cbbda44da749 /build_tools
parent6dbace7374c2f27f50762a5445b28960a135c718 (diff)
dahdi_dynamic: Do not call into dahdi_dynamic without holding reference.
Instead of registering a function pointer, register a dahdi_dynamic_ops structure that contains the owner as well as the ioctl callback. This way dahdi.ko can bump up the reference count on dahdi_dynamic.ko before calling the ioctl callback. Also, use the registration mutex to guard against the module being unloaded between the time the structure pointer was checked, and the module reference is taken. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10623 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools')
0 files changed, 0 insertions, 0 deletions