procfs: report EISDIR when reading sysctl dirs in proc
authorPavel Emelyanov <xemul@openvz.org>
Wed, 2 Nov 2011 20:38:42 +0000 (13:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Nov 2011 23:07:00 +0000 (16:07 -0700)
commit887df07891de0435c25cffb92268fea2c621f99c
tree75773637a771f05f1aab438b7f609b2c00bb62c4
parent89e8a244b97e48f1f30e898b6f32acca477f2a13
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_sysctl.c