summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorJovi Zhang <bookjovi@gmail.com>2011-03-24 00:42:51 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-24 03:46:36 +0100
commitfc3d8767b2b6de955579852d7a150f1734265eaf (patch)
tree282762d459af3ebdf0bf8661a9422d55fc74dbb1 /net/sunrpc/xprtsock.c
parentprocfs: fix /proc/<pid>/maps heap check (diff)
downloadlinux-fc3d8767b2b6de955579852d7a150f1734265eaf.tar.xz
linux-fc3d8767b2b6de955579852d7a150f1734265eaf.zip
procfs: fix some wrong error code usage
[root@wei 1]# cat /proc/1/mem cat: /proc/1/mem: No such process error code -ESRCH is wrong in this situation. Return -EPERM instead. Signed-off-by: Jovi Zhang <bookjovi@gmail.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 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>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
0 files changed, 0 insertions, 0 deletions