aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/devtmpfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r--drivers/base/devtmpfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index deb4a456cf83..147d1a4dd269 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -309,8 +309,8 @@ static int handle_remove(const char *nodename, struct device *dev)
309 * before unlinking this node, reset permissions 309 * before unlinking this node, reset permissions
310 * of possible references like hardlinks 310 * of possible references like hardlinks
311 */ 311 */
312 newattrs.ia_uid = 0; 312 newattrs.ia_uid = GLOBAL_ROOT_UID;
313 newattrs.ia_gid = 0; 313 newattrs.ia_gid = GLOBAL_ROOT_GID;
314 newattrs.ia_mode = stat.mode & ~0777; 314 newattrs.ia_mode = stat.mode & ~0777;
315 newattrs.ia_valid = 315 newattrs.ia_valid =
316 ATTR_UID|ATTR_GID|ATTR_MODE; 316 ATTR_UID|ATTR_GID|ATTR_MODE;