Commit ecd3551c authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] dm devfs fix

Don't pass DEVFS_FL_CURRENT_OWNER to devfs_register, the uid/gid of new
nodes should always be 0.
parent 063a7046
...@@ -180,8 +180,7 @@ static int register_with_devfs(struct hash_cell *hc) ...@@ -180,8 +180,7 @@ static int register_with_devfs(struct hash_cell *hc)
} }
sprintf(name, DM_DIR "/%s", hc->name); sprintf(name, DM_DIR "/%s", hc->name);
devfs_register(NULL, name, DEVFS_FL_CURRENT_OWNER, devfs_register(NULL, name, 0, disk->major, disk->first_minor,
disk->major, disk->first_minor,
S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP, S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP,
&dm_blk_dops, NULL); &dm_blk_dops, NULL);
kfree(name); kfree(name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment