commit | e7e15b87f86d4a48c270b81cf027eafd801e5b89 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Tue Jun 21 13:06:24 2016 -0400 |
committer | Tejun Heo <tj@kernel.org> | Tue Jun 21 13:07:09 2016 -0400 |
tree | 59241241f8869ddd66c0056731f26ec5d61fcd53 | |
parent | d6ccc55e66ccdbc8ad0eeda14419f8eaccbc246b [diff] |
cgroup: allow NULL return from ss->css_alloc() cgroup core expected css_alloc to return an ERR_PTR value on failure and caused NULL deref if it returned NULL. It's an easy mistake to make from an alloc function and there's no ambiguity in what's being indicated. Update css_create() so that it interprets NULL return from css_alloc as -ENOMEM. Signed-off-by: Tejun Heo <tj@kernel.org>