Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove a memory leak on error path. Only try to initialize cpuset if cgroup.clonechildren does not exist. Bump the max value we read from cpuset.{cpus,mems} to 1024. If cpuset.cpus or .mems is already initialized but is too long, don't fail. If parent's cpuset.cpus or .mems is too long, record an error and fail. If anyone actually runs into this, we can simply allocate the required length as needed, but we don't expect anyone to run into this. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters