video: tegra: nvmap: Fix handle ref counting
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 28 Oct 2010 03:52:19 +0000 (20:52 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 29 Oct 2010 01:05:59 +0000 (18:05 -0700)
commit95b5312b0ff1d6cd8cb6b8bd8cce49e79ad0dd23
treed822a178094d120746aa9eef5686ab9e3e97d661
parent84b33d62a46d49a756e88f098a0d12636808e940
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