From 6ba1ca32e671c622db96ebd2cdabf37f99679666 Mon Sep 17 00:00:00 2001 From: hadaq Date: Sat, 19 Nov 2011 23:06:23 +0000 Subject: [PATCH] new error handling --- pexor/kernel-module/pexor_trb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index 6a32704..5115452 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -1387,7 +1387,7 @@ int pexor_ioctl_trbnet_request(struct pexor_privdata *priv, unsigned long arg) /* reset DMA */ iowrite32(PEXOR_TRB_DMA_RESET, priv->pexor.dma_control_stat); /* do we need to flush the fifo-buffer, no libtrbnet takes care */ - status = -EFAULT; + status = -130; goto OUT_IOCTL; } } @@ -1409,7 +1409,7 @@ int pexor_ioctl_trbnet_request(struct pexor_privdata *priv, unsigned long arg) /* reset DMA */ iowrite32(PEXOR_TRB_DMA_RESET, priv->pexor.dma_control_stat); /* do we need to flush the fifo-buffer, no libtrbnet takes care */ - status = -EFAULT; + status = -131; goto OUT_IOCTL; } @@ -1425,7 +1425,7 @@ int pexor_ioctl_trbnet_request(struct pexor_privdata *priv, unsigned long arg) /* reset DMA */ iowrite32(PEXOR_TRB_DMA_RESET, priv->pexor.dma_control_stat); /* do we need to flush the fifo-buffer, no libtrbnet takes care */ - status = -EFAULT; + status = -132; goto OUT_IOCTL; } } @@ -1434,7 +1434,7 @@ int pexor_ioctl_trbnet_request(struct pexor_privdata *priv, unsigned long arg) if ((dmaSize % 5) != 0) { pexor_msg(KERN_ERR "ERROR> Invalid DMA Size %d\n", dmaSize); - status = -EFAULT; + status = -133; goto OUT_IOCTL; } -- 2.43.0