pass creds to get_empty_filp(), make sure dentry_open() passes the right creds
[muen/linux.git] / fs / namei.c
index 734cef5..af2ec18 100644 (file)
@@ -3513,7 +3513,7 @@ static struct file *path_openat(struct nameidata *nd,
        int opened = 0;
        int error;
 
-       file = get_empty_filp();
+       file = alloc_empty_file(current_cred());
        if (IS_ERR(file))
                return file;