diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-07 09:03:30 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-20 23:01:15 -0400 |
commit | cf2706a340ae98616d4e2a54900393e0e0b6b72c (patch) | |
tree | 85a925228256ccdc1eb4453fefa3e09215dccee0 /fs | |
parent | a939b96cccdb65df80a52447ec8e4a6d79c56dbb (diff) | |
download | linux-3.10-cf2706a340ae98616d4e2a54900393e0e0b6b72c.tar.gz linux-3.10-cf2706a340ae98616d4e2a54900393e0e0b6b72c.tar.bz2 linux-3.10-cf2706a340ae98616d4e2a54900393e0e0b6b72c.zip |
Fix AUTOFS_DEV_IOCTL_REQUESTER_CMD
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/dev-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index 9e5ae8a4f5c..463f798f71b 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c @@ -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; |