]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs4/dev-ioctl.c
Merge branch 'master' into next
[linux-2.6-omap-h63xx.git] / fs / autofs4 / dev-ioctl.c
index 33bf8cbfd05172cc020200d4f4eec08d23eab420..63b7c7afe8df96172b1fe9a11bbf95e1c86c0e36 100644 (file)
@@ -308,7 +308,8 @@ static int autofs_dev_ioctl_open_mountpoint(const char *path, dev_t devid)
                        goto out;
                }
 
-               filp = dentry_open(nd.path.dentry, nd.path.mnt, O_RDONLY);
+               filp = dentry_open(nd.path.dentry, nd.path.mnt, O_RDONLY,
+                                  current_cred());
                if (IS_ERR(filp)) {
                        err = PTR_ERR(filp);
                        goto out;