diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-19 16:01:27 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-19 16:01:27 +0000 |
commit | 307fc61247e696b18d84d7fd59f6576b1aca9cec (patch) | |
tree | 3d261aa38176c64607e5de564ee778d3815bc499 /drivers/dahdi/xpp/xproto.h | |
parent | bc110fe9b114b8e3b99f068ad9b3aac6466ee63d (diff) |
xpp: fix the Astribank state machine
This generally is a case that would not happen in the wild, though.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6641 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xproto.h')
-rw-r--r-- | drivers/dahdi/xpp/xproto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xproto.h b/drivers/dahdi/xpp/xproto.h index 0034ab6..efa5e88 100644 --- a/drivers/dahdi/xpp/xproto.h +++ b/drivers/dahdi/xpp/xproto.h @@ -147,9 +147,9 @@ bool valid_xpd_addr(const struct xpd_addr *addr); do { \ int pack_len = RPACKET_SIZE(card,op); \ \ - if(XBUS_IS(xbus, DISCONNECTED)) \ + if(!XBUS_FLAGS(xbus, CONNECTED)) \ return -ENODEV; \ - (frm) = ALLOC_SEND_XFRAME(xbus); \ + (frm) = ALLOC_SEND_XFRAME(xbus); \ if(!(frm)) \ return -ENOMEM; \ (p) = xframe_next_packet(frm, pack_len); \ |