summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-05-11 08:46:03 +0000
committeravg <avg@FreeBSD.org>2015-05-11 08:46:03 +0000
commitaf4d550915cff94c9d7018deaa43c001343503ea (patch)
tree230f99381a3198ebff91a82d180cd0d88175b086 /sys/cddl
parent45e0efb4f52c1856448af8fa0f376c1f5003d560 (diff)
downloadFreeBSD-src-af4d550915cff94c9d7018deaa43c001343503ea.zip
FreeBSD-src-af4d550915cff94c9d7018deaa43c001343503ea.tar.gz
MFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
index 6a90b9c..fe02399 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
@@ -137,7 +137,7 @@ zfs_onexit_fd_hold(int fd, minor_t *minorp)
*minorp = (minor_t)(uintptr_t)data;
curthread->td_fpop = tmpfp;
if (error != 0)
- return (error);
+ return (SET_ERROR(EBADF));
return (zfs_onexit_minor_to_state(*minorp, &zo));
}
OpenPOWER on IntegriCloud