video: tegra: nvmap: free vm_struct in nvmap_munmap()
authorkenjchen <kenjchen@nvidia.com>
Wed, 8 Jun 2011 07:18:27 +0000 (15:18 +0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:47:08 +0000 (21:47 -0800)
commited90c5a450f15a8a3660a409b87ee421754c83d4
tree825a7f37c555793d62bc7d534ab709c5a412a8e1
parent05f5931395973f904d5067c2c0d884efacc4a7a2
video: tegra: nvmap: free vm_struct in nvmap_munmap()

In nvmap_munmap(), remove_vm_area just remove the allocated memory
page information. It doesn't de-allocate vm_struct. kfree()
should be used to avoid memory leak in nvmap.

Bug: 833796
Original-Change-Id: Ibd0309c1ff323fb8110870ace27819f5a1e006ba
Reviewed-on: http://git-master/r/35638
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R417df608c4a24667af81f328bfb65cf3389e19ae
drivers/video/tegra/nvmap/nvmap.c