procfs - Properly return error codes for ioctl calls
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 5 Feb 2015 23:29:55 +0000 (00:29 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 5 Feb 2015 23:29:55 +0000 (00:29 +0100)
sys/vfs/procfs/procfs_vnops.c

index c98c7c4..78c717f 100644 (file)
@@ -410,7 +410,7 @@ procfs_ioctl(struct vop_ioctl_args *ap)
        error = 0;
 done:
        pfs_pdone(procp);
-       return 0;
+       return error;
 }
 
 /*