diff options
author | Yuxuan Shui <[email protected]> | 2012-10-14 17:01:26 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-10-15 09:11:56 -0700 |
commit | 45ca2d91cb14bcbe7a06eea6e6d24ae71f1c54bf (patch) | |
tree | 2e420745243a410b5a970cd71a385fc0bb1e3ad6 | |
parent | 26099167e6b39d719ade3be2b5e087e29f1121cd (diff) |
Return positive error number in zfsctl_shares_lookup.
Otherwise it will cause zpl_shares_lookup() to return a invalid
pointer when an error occurs.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
Closes #626 #885 #947 #977
-rw-r--r-- | module/zfs/zfs_ctldir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_ctldir.c b/module/zfs/zfs_ctldir.c index 55d169654..41d336564 100644 --- a/module/zfs/zfs_ctldir.c +++ b/module/zfs/zfs_ctldir.c @@ -952,7 +952,7 @@ zfsctl_shares_lookup(struct inode *dip, char *name, struct inode **ipp, if (zsb->z_shares_dir == 0) { ZFS_EXIT(zsb); - return (-ENOTSUP); + return (ENOTSUP); } error = zfs_zget(zsb, zsb->z_shares_dir, &dzp); |