summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-04-05 04:05:40 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-05 04:05:40 -0700
commitc5751be200944a09b816a30e5ef698f41e0cfc0f (patch)
tree52ac821d0007634abc1a18c64dee2be6ba2ba3cf
parent85cd9a2afb3fff017105f137a4fc7b0afd25ba2f (diff)
parentf31aa2780c05be453f2fd740fd9b32e95a75a8b5 (diff)
Merge "msm: ADSPRPC: Unmap remote heap buffer only for ADSP SSR"
-rw-r--r--drivers/char/adsprpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c
index e0106a7e31fa..8dd03e6695cb 100644
--- a/drivers/char/adsprpc.c
+++ b/drivers/char/adsprpc.c
@@ -2416,7 +2416,7 @@ static int fastrpc_channel_open(struct fastrpc_file *fl)
kref_init(&me->channel[cid].kref);
pr_info("'opened /dev/%s c %d %d'\n", gcinfo[cid].name,
MAJOR(me->dev_no), cid);
- if (me->channel[cid].ssrcount !=
+ if (cid == 0 && me->channel[cid].ssrcount !=
me->channel[cid].prevssrcount) {
if (fastrpc_mmap_remove_ssr(fl))
pr_err("ADSPRPC: SSR: Failed to unmap remote heap\n");