cgroup: fix missing unlock in cgroup_release_agent()
authorZefan Li <lizefan@huawei.com>
Sat, 20 Sep 2014 06:35:43 +0000 (14:35 +0800)
committerTejun Heo <tj@kernel.org>
Sat, 20 Sep 2014 16:23:35 +0000 (12:23 -0400)
commit3e2cd91ab92665148616a80dc0745c499d2746a7
treed9deebb021eb70e509f0c44b4094bc18509ea036
parenta25eb52e81a40e986179a790fbb5a1f02f482b7a
cgroup: fix missing unlock in cgroup_release_agent()

The patch 971ff4935538: "cgroup: use a per-cgroup work for release
agent" from Sep 18, 2014, leads to the following static checker
warning:

kernel/cgroup.c:5310 cgroup_release_agent()
warn: 'mutex:&cgroup_mutex' is sometimes locked here and sometimes unlocked.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c