From: hadaq Date: Wed, 23 Nov 2011 17:20:43 +0000 (+0000) Subject: update X-Git-Tag: v6.0~96 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3e818c89d7d505e44db0477576feb1926ce04ee1;p=trbnettools.git update --- diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index a4f8888..a5bf7b7 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -1421,8 +1421,7 @@ int pexor_ioctl_trbnet_request(struct pexor_privdata *priv, unsigned long arg) /* No, end DMA */ break; } - // if ((sg_ctr + 1) >= priv->dma.nr_sglist) { - if ((sg_ctr + 1) >= 2) { + if ((sg_ctr + 1) >= priv->dma.nr_sglist) { pexor_msg(KERN_ERR "ERROR> no more DMA buffers available, aborting DMA\n"); /* reset DMA */