diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 23:44:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:03 -0500 |
commit | faef2b6c9960b5ae288899f461a2218ec6bb7928 (patch) | |
tree | af61427bb0984315800617263dbc4d8c42b7d7e7 /fs/sysfs/file.c | |
parent | 5b91aca0bd462c80cf509cbc1014f803eabdc205 (diff) |
sysfs: propagate umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r-- | fs/sysfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 120c3adff6b0..62f4fb37789e 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -518,7 +518,7 @@ out: | |||
518 | } | 518 | } |
519 | 519 | ||
520 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, | 520 | int sysfs_add_file_mode(struct sysfs_dirent *dir_sd, |
521 | const struct attribute *attr, int type, mode_t amode) | 521 | const struct attribute *attr, int type, umode_t amode) |
522 | { | 522 | { |
523 | umode_t mode = (amode & S_IALLUGO) | S_IFREG; | 523 | umode_t mode = (amode & S_IALLUGO) | S_IFREG; |
524 | struct sysfs_addrm_cxt acxt; | 524 | struct sysfs_addrm_cxt acxt; |