aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/unix/af_unix.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index d52811321fce..c247fb9ac761 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -3201,7 +3201,6 @@ EXPORT_SYMBOL_GPL(unix_outq_len);
static int unix_open_file(struct sock *sk)
{
- struct path path;
struct file *f;
int fd;
@@ -3211,27 +3210,20 @@ static int unix_open_file(struct sock *sk)
if (!smp_load_acquire(&unix_sk(sk)->addr))
return -ENOENT;
- path = unix_sk(sk)->path;
- if (!path.dentry)
+ if (!unix_sk(sk)->path.dentry)
return -ENOENT;
- path_get(&path);
-
fd = get_unused_fd_flags(O_CLOEXEC);
if (fd < 0)
- goto out;
+ return fd;
- f = dentry_open(&path, O_PATH, current_cred());
+ f = dentry_open(&unix_sk(sk)->path, O_PATH, current_cred());
if (IS_ERR(f)) {
put_unused_fd(fd);
- fd = PTR_ERR(f);
- goto out;
+ return PTR_ERR(f);
}
fd_install(fd, f);
-out:
- path_put(&path);
-
return fd;
}
1/+658 2023-08-31drm/amdgpu: add VCN4 ip block supportSaleemkhan Jamadar3-0/+1815 2023-08-31drm/amdgpu: add vcn 4_0_5 header filesSaleemkhan Jamadar2-0/+10411 2023-08-31drm/amdgpu: fix VPE front door loading issueLang Yu6-0/+63 2023-08-31drm/amdgpu: add VPE FW version query supportLang Yu2-0/+14 2023-08-31drm/amdgpu: enable VPE for VPE 6.1.0Lang Yu1-0/+19 2023-08-31drm/amdgpu: add user space CS support for VPELang Yu3-0/+9 2023-08-31drm/amdgpu: add PSP loading support for VPELang Yu2-0/+28 2023-08-31drm/amdgpu: add VPE 6.1.0 supportLang Yu6-0/+1019 2023-08-31drm/amdgpu: add nbio 7.11 callback for VPELang Yu1-0/+24 2023-08-31drm/amdgpu: add nbio callback for VPELang Yu1-0/+2 2023-08-31drm/amdgpu: add PSP FW TYPE for VPELang Yu2-0/+8 2023-08-31drm/amdgpu: add UCODE ID for VPELang Yu1-0/+2 2023-08-31drm/amdgpu: add support for VPE firmware name decodingLang Yu1-0/+3 2023-08-31drm/amdgpu: add doorbell index for VPELang Yu2-2/+6