diff options
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r-- | drivers/base/devtmpfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index aadf6472428f..abd4eee61d27 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c | |||
@@ -212,8 +212,8 @@ static int handle_create(const char *nodename, umode_t mode, uid_t uid, | |||
212 | struct iattr newattrs; | 212 | struct iattr newattrs; |
213 | 213 | ||
214 | newattrs.ia_mode = mode; | 214 | newattrs.ia_mode = mode; |
215 | newattrs.ia_uid = uid; | 215 | newattrs.ia_uid = KUIDT_INIT(uid); |
216 | newattrs.ia_gid = gid; | 216 | newattrs.ia_gid = KGIDT_INIT(gid); |
217 | newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; | 217 | newattrs.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID; |
218 | mutex_lock(&dentry->d_inode->i_mutex); | 218 | mutex_lock(&dentry->d_inode->i_mutex); |
219 | notify_change(dentry, &newattrs); | 219 | notify_change(dentry, &newattrs); |