diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-07 13:03:30 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-21 03:01:15 (GMT) |
commit | cf2706a340ae98616d4e2a54900393e0e0b6b72c (patch) | |
tree | 85a925228256ccdc1eb4453fefa3e09215dccee0 /fs/autofs4 | |
parent | a939b96cccdb65df80a52447ec8e4a6d79c56dbb (diff) | |
download | linux-fsl-qoriq-cf2706a340ae98616d4e2a54900393e0e0b6b72c.tar.xz |
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/autofs4')
-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 9e5ae8a..463f798 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; |