[<prev] [next>] [day] [month] [year] [list]
Message-ID: <94f70136-c57c-4c4c-9e5d-5044e7e01b67@web.de>
Date: Tue, 7 Oct 2025 20:10:10 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-cifs@...r.kernel.org, samba-technical@...ts.samba.org,
Bharath SM <bharathsm@...rosoft.com>, Paulo Alcantara <pc@...guebit.org>,
Ronnie Sahlberg <ronniesahlberg@...il.com>,
Shyam Prasad N <sprasad@...rosoft.com>, Steve French <sfrench@...ba.org>,
Tom Talpey <tom@...pey.com>
Cc: LKML <linux-kernel@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: [PATCH] smb: client: Use common code in cifs_acl_to_fattr()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Tue, 7 Oct 2025 20:00:18 +0200
Use an additional label so that a bit of common code can be better reused
at the end of this function implementation.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
fs/smb/client/cifsacl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/smb/client/cifsacl.c b/fs/smb/client/cifsacl.c
index 63b3b1290bed..ca89f22a72c4 100644
--- a/fs/smb/client/cifsacl.c
+++ b/fs/smb/client/cifsacl.c
@@ -1579,8 +1579,8 @@ cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr,
else if (ops->get_acl)
pntsd = ops->get_acl(cifs_sb, inode, path, &acllen, info);
else {
- cifs_put_tlink(tlink);
- return -EOPNOTSUPP;
+ rc = -EOPNOTSUPP;
+ goto put_tlink;
}
/* if we can retrieve the ACL, now parse Access Control Entries, ACEs */
if (IS_ERR(pntsd)) {
@@ -1596,7 +1596,7 @@ cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr,
if (rc)
cifs_dbg(VFS, "parse sec desc failed rc = %d\n", rc);
}
-
+put_tlink:
cifs_put_tlink(tlink);
return rc;
--
2.51.0
Powered by blists - more mailing lists