git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95d74ed
)
Should return ESRCH rather than EINVAL if a context doesn't exist
author
Steve Muir
<smuir@cs.princeton.edu>
Fri, 2 Dec 2005 18:44:05 +0000
(18:44 +0000)
committer
Steve Muir
<smuir@cs.princeton.edu>
Fri, 2 Dec 2005 18:44:05 +0000
(18:44 +0000)
kernel/vserver/sched.c
patch
|
blob
|
history
diff --git
a/kernel/vserver/sched.c
b/kernel/vserver/sched.c
index
5aae959
..
b90326c
100644
(file)
--- a/
kernel/vserver/sched.c
+++ b/
kernel/vserver/sched.c
@@
-257,7
+257,7
@@
int vc_set_sched_v2(uint32_t xid, void __user *data)
vxi = locate_vx_info(xid);
if (!vxi)
- return -E
INVAL
;
+ return -E
SRCH
;
spin_lock(&vxi->sched.tokens_lock);
@@
-305,7
+305,7
@@
int vc_set_sched(uint32_t xid, void __user *data)
vxi = locate_vx_info(xid);
if (!vxi)
- return -E
INVAL
;
+ return -E
SRCH
;
set_mask = vc_data.set_mask;