linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/cifs/cifsacl: fix sid_to_id
@ 2020-03-03 15:43 Qiujun Huang
  2020-03-03 20:13 ` Steve French
  0 siblings, 1 reply; 3+ messages in thread
From: Qiujun Huang @ 2020-03-03 15:43 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, linux-kernel, Qiujun Huang

fix it to return the errcode.

Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
---
 fs/cifs/cifsacl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
index 716574a..a8d2aa8 100644
--- a/fs/cifs/cifsacl.c
+++ b/fs/cifs/cifsacl.c
@@ -400,6 +400,7 @@
 	if (!sidstr)
 		return -ENOMEM;
 
+	rc = 0;
 	saved_cred = override_creds(root_cred);
 	sidkey = request_key(&cifs_idmap_key_type, sidstr, "");
 	if (IS_ERR(sidkey)) {
@@ -454,7 +455,7 @@
 		fattr->cf_uid = fuid;
 	else
 		fattr->cf_gid = fgid;
-	return 0;
+	return rc;
 }
 
 int
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-03 23:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 15:43 [PATCH] fs/cifs/cifsacl: fix sid_to_id Qiujun Huang
2020-03-03 20:13 ` Steve French
2020-03-03 23:13   ` Qiujun Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).