]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: Use correct dev in ctx alloc
authorArto Merilainen <amerilainen@nvidia.com>
Sun, 16 Nov 2014 16:30:39 +0000 (18:30 +0200)
committerArto Merilainen <amerilainen@nvidia.com>
Tue, 18 Nov 2014 09:17:29 +0000 (01:17 -0800)
Recently merged patch for channel specific vm contexts caused a
regression to map-at-submit policy. This patch fixes a NULL pointer
exception caused by the change.

Bug 200041935

Change-Id: Id82730ff8cb90ccd90b29c00d5cd462d02fd153c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/603848
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
drivers/video/tegra/host/bus_client.c

index e7fe16a3b8061596e56799a9bcc6a22200995f72..8bf1843c9c2fed003fe23864093f04fa7398c45d 100644 (file)
@@ -298,7 +298,7 @@ static int __nvhost_channelopen(struct inode *inode,
        if (!tegra_platform_is_silicon())
                priv->timeout = 0;
 
-       priv->vm = nvhost_vm_allocate(ch->dev);
+       priv->vm = nvhost_vm_allocate(pdev);
 
        mutex_unlock(&channel_lock);