diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-05-29 13:18:25 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-06-11 19:41:56 +0300 |
commit | 530c09f26179debc4bcd7a0ad6da38d75bfc0296 (patch) | |
tree | 6ee5726377b51e8c963c8b3d08b4fc160c82b87d /drivers/staging/media/atomisp/pci/hmm | |
parent | 607e954ac50ed39944db72874d80240aab15004f (diff) | |
download | linux-530c09f26179debc4bcd7a0ad6da38d75bfc0296.tar.xz |
media: atomisp: add a debug message at hmm free
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>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/hmm')
-rw-r--r-- | drivers/staging/media/atomisp/pci/hmm/hmm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm.c b/drivers/staging/media/atomisp/pci/hmm/hmm.c index c2abd14353e6..86e5fa936bae 100644 --- a/drivers/staging/media/atomisp/pci/hmm/hmm.c +++ b/drivers/staging/media/atomisp/pci/hmm/hmm.c @@ -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); |