Message ID | 20240814111836.6368311a@canb.auug.org.au (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | linux-next: build failure after merge of the bpf-next tree | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/fs/namespace.c b/fs/namespace.c index 159be8ed9d24..7aed325c48ad 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -5292,13 +5292,13 @@ static struct mnt_namespace *grab_requested_mnt_ns(const struct mnt_id_req *kreq struct ns_common *ns; CLASS(fd, f)(kreq->spare); - if (!f.file) + if (!fd_file(f)) return ERR_PTR(-EBADF); - if (!proc_ns_file(f.file)) + if (!proc_ns_file(fd_file(f))) return ERR_PTR(-EINVAL); - ns = get_proc_ns(file_inode(f.file)); + ns = get_proc_ns(file_inode(fd_file(f))); if (ns->ops->type != CLONE_NEWNS) return ERR_PTR(-EINVAL);