]> 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>
Wed, 5 Oct 2011 07:56:09 +0000 (18:56 +1100)
commitac35a22b360ef890d8f7e6db1d0183b722a33079
treefae09a15ec07fe56e6299bd5bfdc0cef17c595fe
parentf2ea8c368a10adbf48302c5c1e5f0bd61afd16d1
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