]> git.karo-electronics.de Git - karo-tx-linux.git/commit
procfs: report EISDIR when reading sysctl dirs in proc
authorPavel Emelyanov <xemul@openvz.org>
Wed, 5 Oct 2011 00:43:52 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 11 Oct 2011 08:44:15 +0000 (19:44 +1100)
commitaf9144f2e4fe03fa3574163b09caba47adf6247c
tree8c9c156b90232cd0c65970e8fd627dd0e084c6d1
parentdf0f89742f9cdf9e9b586107d2f6b9926ede263e
procfs: report EISDIR when reading sysctl dirs in proc

On reading sysctl dirs we should return -EISDIR instead of -EINVAL.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/proc_sysctl.c