video: tegra: nvmap: Fix handle ref counting
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 28 Oct 2010 03:52:19 +0000 (20:52 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:36:35 +0000 (21:36 -0800)
commit67f79a61b1f528981476b3f9e08e55cd85337958
tree4052ee0d814563aedecf4e3ff92dc522fac99231
parentf1a0750d6acc558dfb688d179e5cd9add2819334
video: tegra: nvmap: Fix handle ref counting

In the current implementation handles hold references to a
client and clients hold references to their handles.  As a
result when a process terminates it's handles can't be cleaned
up and we leak memory.  Instead only hold references to handles
from clients.

Change-Id: Iba699e740a043deaf0a78b13b4ea01544675078f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/video/tegra/nvmap/nvmap.h
drivers/video/tegra/nvmap/nvmap_dev.c
drivers/video/tegra/nvmap/nvmap_handle.c