diff options
author | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-10-02 21:14:56 +0000 |
---|---|---|
committer | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-10-02 21:14:56 +0000 |
commit | cd348cedfd946762fc2dbd61782420a40785ab16 (patch) | |
tree | 49be479a759e57eac29612f0923c5534a9e2e127 | |
parent | fb65d9c40ff5b61761f26651c8d790c8889d66fc (diff) |
Keep hold of the channel lock when setting the data_ready flag for the channel
after writing to the receive queue. Prevents a warning that data was on the
recieve queue but the data ready flag was not set.
Issue: DAHDI-42
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4554 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | kernel/wctc4xxp/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/wctc4xxp/base.c b/kernel/wctc4xxp/base.c index 6751424..77c840a 100644 --- a/kernel/wctc4xxp/base.c +++ b/kernel/wctc4xxp/base.c @@ -1941,8 +1941,8 @@ queue_rtp_packet(struct wcdte *wc, struct tcb *cmd) cpvt = dtc->pvt; spin_lock_bh(&cpvt->lock); list_add_tail(&cmd->node, &cpvt->rx_queue); - spin_unlock_bh(&cpvt->lock); zt_tc_set_data_waiting(dtc); + spin_unlock_bh(&cpvt->lock); zt_transcoder_alert(dtc); return; } |