]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: fix locking regression in the failure path of pcpu_alloc()
authorTejun Heo <tj@kernel.org>
Mon, 8 Sep 2014 23:02:45 +0000 (08:02 +0900)
committerTejun Heo <tj@kernel.org>
Mon, 8 Sep 2014 23:02:45 +0000 (08:02 +0900)
commit9542a3c00f7e2c9533ae570d31dbbce8084ddd4a
treec9c8e52c6034cdd809dba59e5ff3d491694506aa
parent47a0ac396d86b507a7919d943c600c3f55b55f2a
percpu: fix locking regression in the failure path of pcpu_alloc()

While updating locking, 18eac281ae51 ("percpu: restructure locking")
broke pcpu_create_chunk() creation path in pcpu_alloc().  It returns
without releasing pcpu_alloc_mutex.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
mm/percpu.c