]> git.baikalelectronics.ru Git - kernel.git/commit
Fix unbalanced mutex in dma_pool_create().
authorKrzysztof Hałasa <khalasa@piap.pl>
Thu, 18 Sep 2014 13:12:02 +0000 (15:12 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Sep 2014 17:39:16 +0000 (10:39 -0700)
commit6f221fb49b43b2c50b169a8b1db4df6b8fa6c894
tree3e8fa74fb7be60620fdf6672db8f2bd1e0454829
parentb8552451c0a7193e94cb14656a176692c10e0fc9
Fix unbalanced mutex in dma_pool_create().

dma_pool_create() needs to unlock the mutex in error case.  The bug was
introduced in the 3.16 by commit 7cbf12782400 ("mm/dmapool.c: remove
redundant NULL check for dev in dma_pool_create()")/

Signed-off-by: Krzysztof Hałasa <khc@piap.pl>
Cc: stable@vger.kernel.org # v3.16
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/dmapool.c