switch security_path_chmod() to struct path *
[deliverable/linux.git] / fs / open.c
index 2659f596f4c582183995e8796aaf11de6d28ffc4..77becc04114908fae2a45f655ed22996264723ad 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -456,7 +456,7 @@ static int chmod_common(struct path *path, umode_t mode)
        if (error)
                return error;
        mutex_lock(&inode->i_mutex);
-       error = security_path_chmod(path->dentry, path->mnt, mode);
+       error = security_path_chmod(path, mode);
        if (error)
                goto out_unlock;
        newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO);
This page took 0.038652 seconds and 5 git commands to generate.