Message ID | 20180708210154.10423-2-ebiggers3@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 0a016dd49300a..1e1c0ccc6a367 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -27,6 +27,9 @@ static int sysfs_get_tree(struct fs_context *fc) int ret; ret = kernfs_get_tree(fc); + if (ret) + return ret; + if (kfc->new_sb_created) fc->root->d_sb->s_iflags |= SB_I_USERNS_VISIBLE; return 0;