diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:46:38 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:46:38 +0000 |
commit | 1e1e345a26cafd67708d35bc102da6ba5992c337 (patch) | |
tree | 27bf45e2d97b5fd16982d26a6c514d83fdad4e86 /xpp/astribank_allow.c | |
parent | 227fb9a92a1d3fc09d56cc0115c3f2c121932927 (diff) |
xpp: bugfix: handle echo_loader errors
* I/O errors of the device were not propagated up by echo_loader
* As a result, Octasic load failure did not prevented USB renumeration
* Make consistent return values:
- In our functions: ret < 0 is error
- In Octasic functions (UINT32): return Octasic error codes
* All error paths prints error messages (so we see how the error propagates)
* Also changed error order testing in init_octasic():
Return status should be tested before the values of by-reference parameters
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10499
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.6@10520 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/astribank_allow.c')
0 files changed, 0 insertions, 0 deletions