projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a939b96
)
Fix AUTOFS_DEV_IOCTL_REQUESTER_CMD
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 7 Apr 2009 13:03:30 +0000
(09:03 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 21 Apr 2009 03:01:15 +0000
(23:01 -0400)
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>
fs/autofs4/dev-ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/autofs4/dev-ioctl.c
b/fs/autofs4/dev-ioctl.c
index 9e5ae8a4f5c867bf1ddb81525cd260028d8d3c9e..463f798f71b3580e0ae23e560a8f886f8df521b4 100644
(file)
--- 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;