Skip to content

Commit

Permalink
Fix AUTOFS_DEV_IOCTL_REQUESTER_CMD
Browse files Browse the repository at this point in the history
Missing conversion from kernel to userland dev_t; this sucker
breaks as soon as we get sufficiently many autofs mounts for
new_encode_dev(s_dev) != s_dev.

Note: this is the minimal fix.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Apr 21, 2009
1 parent a939b96 commit cf2706a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/autofs4/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static int autofs_dev_ioctl_requester(struct file *fp,
}

path = param->path;
devid = sbi->sb->s_dev;
devid = new_encode_dev(sbi->sb->s_dev);

param->requester.uid = param->requester.gid = -1;

Expand Down

0 comments on commit cf2706a

Please sign in to comment.