Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233916
b: refs/heads/master
c: b75f38d
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Mar 5, 2011
1 parent fb88470 commit d0f32a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ec38a0359e227c01080dcd670a0368c61ccd9ce
refs/heads/master: b75f38d659e6fc747eda64cb72f3920e29dd44a4
7 changes: 5 additions & 2 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,8 +1575,10 @@ static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft,
return -ENODEV;

trialcs = alloc_trial_cpuset(cs);
if (!trialcs)
return -ENOMEM;
if (!trialcs) {
retval = -ENOMEM;
goto out;
}

switch (cft->private) {
case FILE_CPULIST:
Expand All @@ -1591,6 +1593,7 @@ static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft,
}

free_trial_cpuset(trialcs);
out:
cgroup_unlock();
return retval;
}
Expand Down

0 comments on commit d0f32a3

Please sign in to comment.