From cd348cedfd946762fc2dbd61782420a40785ab16 Mon Sep 17 00:00:00 2001 From: sruffell Date: Thu, 2 Oct 2008 21:14:56 +0000 Subject: 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 --- kernel/wctc4xxp/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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; } -- cgit v1.2.3