Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf2706a3 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a939b96c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;