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 <isaacm@codeaurora.org>
This commit is contained in:
Isaac J. Manjarres 2019-09-03 15:37:11 -07:00
commit 2a230de1e9

View file

@ -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)