svn commit: r282761 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Mon May 11 08:46:24 UTC 2015
Author: avg
Date: Mon May 11 08:46:23 2015
New Revision: 282761
URL: https://svnweb.freebsd.org/changeset/base/282761
Log:
MFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT
Modified:
stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c Mon May 11 08:46:03 2015 (r282760)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c Mon May 11 08:46:23 2015 (r282761)
@@ -136,7 +136,7 @@ zfs_onexit_fd_hold(int fd, minor_t *mino
*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));
}
More information about the svn-src-stable-9
mailing list