]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/proc/proc_sysctl.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[mv-sheeva.git] / fs / proc / proc_sysctl.c
index d167de365a8de0f52ae880e0b88c75750109d981..1a77dbef226f00a2c41a5606b6e3c95fece6f5aa 100644 (file)
@@ -294,7 +294,7 @@ out:
        return ret;
 }
 
-static int proc_sys_permission(struct inode *inode, int mask,unsigned int flags)
+static int proc_sys_permission(struct inode *inode, int mask)
 {
        /*
         * sysctl entries that are not writeable,
@@ -316,7 +316,7 @@ static int proc_sys_permission(struct inode *inode, int mask,unsigned int flags)
        if (!table) /* global root - r-xr-xr-x */
                error = mask & MAY_WRITE ? -EACCES : 0;
        else /* Use the permissions on the sysctl table entry */
-               error = sysctl_perm(head->root, table, mask);
+               error = sysctl_perm(head->root, table, mask & ~MAY_NOT_BLOCK);
 
        sysctl_head_finish(head);
        return error;