From 2a230de1e9728fa44f3c0e4d5587a3ec15756a54 Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Tue, 3 Sep 2019 15:37:11 -0700 Subject: [PATCH] ion: msm: Remove unnecessary free when destroying an ION buffer When an ION buffer is destroyed, the dma-buf release path will try to free the exporter name field in the dma-buf. However, this is not needed, as the field is not populated with dynamically allocated memory. Thus, remove it. Change-Id: Ieda30c2130d80ef3e6016e1c574f0524fce14fcc Signed-off-by: Isaac J. Manjarres --- drivers/staging/android/ion/msm_ion_dma_buf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/msm_ion_dma_buf.c b/drivers/staging/android/ion/msm_ion_dma_buf.c index 749842bdbc8d..bb5646e55dc2 100644 --- a/drivers/staging/android/ion/msm_ion_dma_buf.c +++ b/drivers/staging/android/ion/msm_ion_dma_buf.c @@ -325,7 +325,6 @@ static void ion_dma_buf_release(struct dma_buf *dmabuf) struct ion_buffer *buffer = dmabuf->priv; _ion_buffer_destroy(buffer); - kfree(dmabuf->exp_name); } static void *ion_dma_buf_vmap(struct dma_buf *dmabuf)