projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CRED: Wrap current->cred and a few other accessors
[firefly-linux-kernel-4.4.55.git]
/
fs
/
smbfs
/
dir.c
diff --git
a/fs/smbfs/dir.c
b/fs/smbfs/dir.c
index 9e9bb0db4f6db9cf9a9dafed3511df9434e7aca0..e7ddd0328ddc79ce22f95896ba3dd063d275b73e 100644
(file)
--- a/
fs/smbfs/dir.c
+++ b/
fs/smbfs/dir.c
@@
-667,8
+667,7
@@
smb_make_node(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
attr.ia_valid = ATTR_MODE | ATTR_UID | ATTR_GID;
attr.ia_mode = mode;
- attr.ia_uid = current_euid();
- attr.ia_gid = current_egid();
+ current_euid_egid(&attr.ia_uid, &attr.ia_gid);
if (!new_valid_dev(dev))
return -EINVAL;