media: atomisp: add a debug message at hmm free
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 29 May 2020 10:18:25 +0000 (12:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:41:56 +0000 (18:41 +0200)
In order to check if aren't there any memory leaks, let's
add a debug print for hmm_free().

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/hmm/hmm.c

index c2abd14353e6845bd8a3dd78bc9ea07efa57e159..86e5fa936baef6654c9b0acbab1fe64783c4bd89 100644 (file)
@@ -285,6 +285,8 @@ void hmm_free(ia_css_ptr virt)
 {
        struct hmm_buffer_object *bo;
 
+       dev_dbg(atomisp_dev, "%s: free 0x%08x\n", __func__, virt);
+
        WARN_ON(!virt);
 
        bo = hmm_bo_device_search_start(&bo_device, (unsigned int)virt);