commit | 87e0d1834a4a9c610fc5f20082968740113dcbaf | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Mar 12 22:58:55 2014 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Mar 12 22:58:54 2014 -0700 |
tree | 6a59cbd1e5bf1f6d9621620cdbb35b71e48c7ee9 | |
parent | 4d20fb05fb51a200f8ebebfd098baf0cfab2c1c1 [diff] | |
parent | 35ecff44ea84a5c3755461dfeb73cb5dbb2c76c9 [diff] |
Merge "ion: Add missing unlock on error path"
diff --git a/drivers/gpu/ion/ion_cma_secure_heap.c b/drivers/gpu/ion/ion_cma_secure_heap.c index d375c00..0aef596 100644 --- a/drivers/gpu/ion/ion_cma_secure_heap.c +++ b/drivers/gpu/ion/ion_cma_secure_heap.c
@@ -446,6 +446,7 @@ if (ret) { ret = ion_secure_cma_add_to_pool(sheap, len); if (ret) { + mutex_unlock(&sheap->alloc_lock); dev_err(sheap->dev, "Fail to allocate buffer\n"); goto err; }