summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-09-13 13:20:15 -0700
committerBrian Behlendorf <[email protected]>2013-09-13 13:31:24 -0700
commit34d5a5fd03210d9efdd5966070df1f71c0dbef96 (patch)
treebabea6ef5e82baac140e0d23c9d3d447bdcecd40 /module
parent17897ce2c88476f6fb7413f05e183694cb7482ef (diff)
Fix zpl_mknod() return values
The zpl_mknod() function was incorrectly negating its return value. This doesn't cause any problems in the success case, but it does prevent us from returning the correct error code for a failure. The implementation of this function is now consistent with all the other zpl_* functions. Signed-off-by: Brian Behlendorf <[email protected]> Closes #1717
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zpl_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c
index ab1fe6823..720d2d9fa 100644
--- a/module/zfs/zpl_inode.c
+++ b/module/zfs/zpl_inode.c
@@ -143,7 +143,7 @@ zpl_mknod(struct inode *dir, struct dentry *dentry, zpl_umode_t mode,
crfree(cr);
ASSERT3S(error, <=, 0);
- return (-error);
+ return (error);
}
static int