]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
new error handling
authorhadaq <hadaq>
Sat, 19 Nov 2011 23:06:23 +0000 (23:06 +0000)
committerhadaq <hadaq>
Sat, 19 Nov 2011 23:06:23 +0000 (23:06 +0000)
pexor/kernel-module/pexor_trb.c

index 6a327046fc9b75ec8f9cda528078ef6c663c8140..5115452f4c9ea3a779f84ab29eff898fa4534d94 100644 (file)
@@ -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;
     }