diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-05 17:35:17 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-05 17:35:17 +0000 |
commit | d790e7ec15490f61afed3b26ca8d8d2d80ca1d01 (patch) | |
tree | adbdb9969b84ecc894430e43eaeea7b76203603d /include/dahdi | |
parent | 4620300643e819b1bfff9d10a42e985e5e38ece5 (diff) |
xpp: handle failures during dahdi_register_device()
* If dahdi_register_device() failed, not all resources were freed.
When dahdi_unregister_device() was called later (during driver
removal) a panic was caused.
* Add proper error handling for possible failures in
xbus_register_dahdi_device():
- new xbus_free_ddev() safely free an xbus->ddev
- This is called from all failures points.
- It is also called from xbus_unregister_dahdi_device()
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10410 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi')
0 files changed, 0 insertions, 0 deletions