diff options
author | Shaun Ruffell <sruffell@digium.com> | 2008-10-02 21:14:39 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2008-10-02 21:14:39 +0000 |
commit | b9ed538281305b4dd93d890b77d70549efa6a4bd (patch) | |
tree | 87f1ffba5dfe7f3c5b54593887b8bc3d988d723e /drivers/dahdi/wctc4xxp | |
parent | 9d2cdcd5acb3a52bf4ec7fb30c941bf83202edee (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.asterisk.org/svn/dahdi/linux/trunk@5030 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctc4xxp')
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 930379a..905e0ab 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -1940,8 +1940,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); dahdi_tc_set_data_waiting(dtc); + spin_unlock_bh(&cpvt->lock); dahdi_transcoder_alert(dtc); return; } |