video: tegra: nvmap: fix iovmm null ptr exception
Adeel Raza [Tue, 9 Apr 2013 08:50:30 +0000 (01:50 -0700)]
This is a temporary hack to fix an iovmm null pointer exception. This
hack should eventually be removed.

Change-Id: If15a0c4fc6f8df64740f8b7124c4a6bb1978ee4e
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/217766
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

drivers/video/tegra/nvmap/nvmap_dev.c

index dc2d4b5..b7713c4 100644 (file)
@@ -539,7 +539,8 @@ struct nvmap_client *nvmap_create_client(struct nvmap_device *dev,
 
        atomic_set(&client->iovm_commit, 0);
 
-       client->iovm_limit = nvmap_mru_vm_size(client->share->iovmm);
+       /* !!!FIXME!!!:- Remove this hack */
+       //client->iovm_limit = nvmap_mru_vm_size(client->share->iovmm);
 
        for (i = 0; i < dev->nr_carveouts; i++) {
                INIT_LIST_HEAD(&client->carveout_commit[i].list);