diff options
| author | Jovi Zhang <[email protected]> | 2011-03-23 16:42:51 -0700 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-03-23 19:46:36 -0700 | 
| commit | fc3d8767b2b6de955579852d7a150f1734265eaf (patch) | |
| tree | 282762d459af3ebdf0bf8661a9422d55fc74dbb1 /fs/proc/array.c | |
| parent | 0db0c01b53a1a421513f91573241aabafb87802a (diff) | |
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 <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions