diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-06-01 01:53:10 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-06-01 01:53:09 -0700 |
| commit | b5c7db0743cd5392dd50a7a9778ab0d80e23ecb8 (patch) | |
| tree | c64a8b7a0085f9484f38dc47686cf5940efabd9b | |
| parent | 0934299196b501332d487b0e1e0aa88f707d0de7 (diff) | |
| parent | 6491d72c2a91df75e3e79b0eb9f0792b4988552f (diff) | |
Merge "mhi: core: Fix memory leak in MHI DE_INIT"
| -rw-r--r-- | drivers/platform/msm/mhi/mhi_bhi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/msm/mhi/mhi_bhi.c b/drivers/platform/msm/mhi/mhi_bhi.c index 5b05270b1e66..e1c50e1273ac 100644 --- a/drivers/platform/msm/mhi/mhi_bhi.c +++ b/drivers/platform/msm/mhi/mhi_bhi.c @@ -598,6 +598,7 @@ void bhi_exit(struct mhi_device_ctxt *mhi_dev_ctxt) dma_free_coherent(dev, bhie_mem_info->alloc_size, bhie_mem_info->pre_aligned, bhie_mem_info->dma_handle); + kfree(fw_table->bhie_mem_info); fw_table->bhie_mem_info = NULL; /* vector table is the last entry in bhie_mem_info */ fw_table->bhi_vec_entry = NULL; @@ -613,6 +614,7 @@ void bhi_exit(struct mhi_device_ctxt *mhi_dev_ctxt) dma_free_coherent(dev, bhie_mem_info->alloc_size, bhie_mem_info->pre_aligned, bhie_mem_info->dma_handle); + kfree(rddm_table->bhie_mem_info); rddm_table->bhie_mem_info = NULL; rddm_table->bhi_vec_entry = NULL; } |
