mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
hostfs: Use correct mask for file mode
S_IFMT is obviously wrong and needs to be 0777.
We're interested in the file mode, not the type.
Fixes: b98b91029c (hostfs: No need to box and later unbox the file mode)
Reported-by: Markus Stenberg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
This commit is contained in:
parent
5ebe6afaf0
commit
a718c92219
1 changed files with 1 additions and 1 deletions
|
|
@ -581,7 +581,7 @@ static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
|||
if (name == NULL)
|
||||
goto out_put;
|
||||
|
||||
fd = file_create(name, mode & S_IFMT);
|
||||
fd = file_create(name, mode & 0777);
|
||||
if (fd < 0)
|
||||
error = fd;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue