diff options
| author | Sathish Ambley <sathishambley@codeaurora.org> | 2016-03-08 10:01:42 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:03:19 -0700 |
| commit | 7c7281de28af4209fedfefdf58717a5efb1d30c4 (patch) | |
| tree | 0ac6fed9cc81437d758ffd5881e717385ac07254 | |
| parent | e1dba4968a108a8370d52c861cc2502b26349f76 (diff) | |
msm: ADSPRPC: Fix memory leak for remote heap
Fix the condition that was causing the remote heap from
not being freed.
Change-Id: I825e813f4f4e7c3cecaf9150d9ef40ff40cfb5a2
Acked-by: Bharath Kumar <bkumar@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
| -rw-r--r-- | drivers/char/adsprpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 94f2546ea597..41b3f82efc0d 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -446,7 +446,7 @@ static void fastrpc_mmap_free(struct fastrpc_mmap *map) if (map->flags == ADSP_MMAP_HEAP_ADDR) { DEFINE_DMA_ATTRS(attrs); - if (me->dev != NULL) { + if (me->dev == NULL) { pr_err("failed to free remote heap allocation\n"); return; } |
