diff options
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-x | wct4xxp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;y<chan->numbufs;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); |