From 42daaf8760f76ce37773b531fc42e97c800a09e2 Mon Sep 17 00:00:00 2001 From: Hyesoo Yu Date: Thu, 24 Dec 2020 15:52:38 +0900 Subject: [PATCH] ANDROID: dma-buf: heap: export dma_heap_put dma_heap_put() symbols is needed for vendor loadable modules to drop reference count after dma_heap_find(). Bug: 176262479 Signed-off-by: Hyesoo Yu Change-Id: I180698371d16a9e14ed648687e77a68dc3afc951 Signed-off-by: Hridya Valsaraju (cherry picked from commit c87cc4b2e554a670e00bdf08ad74e7596167d1c8) Signed-off-by: Palmer Dabbelt --- drivers/dma-buf/dma-heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index c48ac45e4d6c..0699c4b70b5c 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -265,6 +265,7 @@ void dma_heap_put(struct dma_heap *h) kref_put(&h->refcount, dma_heap_release); mutex_unlock(&heap_list_lock); } +EXPORT_SYMBOL_GPL(dma_heap_put); /** * dma_heap_get_dev() - get device struct for the heap