don't use tbm api in bufmgr_debug_show 23/92423/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 17 Oct 2016 02:45:57 +0000 (11:45 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 17 Oct 2016 02:46:01 +0000 (11:46 +0900)
if bufmgr debug show is called in import/fd/alloc, process enter deadlock

Change-Id: I2473cb2537c131cab3472b8be0c716a33611ed5a

src/tbm_bufmgr.c

index c9633c9..5aca327 100644 (file)
@@ -1551,7 +1551,7 @@ tbm_bufmgr_debug_show(tbm_bufmgr bufmgr)
                                  ++bo_cnt,
                                  bo,
                                  bo->ref_cnt,
-                                 tbm_bo_size(bo) / 1024,
+                                 bufmgr->backend->bo_size(bo) / 1024,
                                  bo->lock_cnt,
                                  bo->map_cnt,
                                  bo->flags,