From bed2e1a7eb26ef5d2e1570692508151de414390c Mon Sep 17 00:00:00 2001 From: markster Date: Mon, 15 Aug 2005 20:03:54 +0000 Subject: Don't mute anything with no (or empty) buffers git-svn-id: http://svn.digium.com/svn/zaptel/trunk@737 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wct4xxp.c b/wct4xxp.c index 0e36e42..d916d66 100755 --- a/wct4xxp.c +++ b/wct4xxp.c @@ -578,7 +578,7 @@ static void __t4_check_vpm(struct t4 *wc, unsigned int newio) int y; spin_lock_irqsave(&chan->lock, flags); for (y=0;ynumbufs;y++) { - if (chan->readidx[y]) + if ((chan->inreadbuf > -1) && (chan->readidx[y])) memset(chan->readbuf[chan->inreadbuf], ZT_XLAW(0, chan), chan->readidx[y]); } spin_unlock_irqrestore(&chan->lock, flags); -- cgit v1.2.3