]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/namespace.c
Merge branch 'topic/kmemtrace' of git://git.kernel.org/pub/scm/linux/kernel/git/penbe...
[mv-sheeva.git] / fs / namespace.c
index 65b3dc844c879c059c004425487672eff21b5682..1c09cab8f7cf7c4faea9b1e0e4aa8fc6382824c4 100644 (file)
@@ -1176,7 +1176,7 @@ static int mount_is_safe(struct path *path)
        if (S_ISLNK(path->dentry->d_inode->i_mode))
                return -EPERM;
        if (path->dentry->d_inode->i_mode & S_ISVTX) {
-               if (current->uid != path->dentry->d_inode->i_uid)
+               if (current_uid() != path->dentry->d_inode->i_uid)
                        return -EPERM;
        }
        if (inode_permission(path->dentry->d_inode, MAY_WRITE))