]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/msm: use correct aspace pointer in msm_gem_put_iova()
authorDaniel Mack <daniel@zonque.org>
Thu, 3 May 2018 12:00:56 +0000 (14:00 +0200)
committerRob Clark <robdclark@gmail.com>
Sun, 3 Jun 2018 20:49:00 +0000 (16:49 -0400)
Even though msm_gem_put_iova() is currently a NOP function, the caller
should pass in the address space pointer it used to obtain the object.

Other call sites were changed in 8bdcd949bbe7e ("drm/msm: pass
address-space to _get_iova() and friends"), but this one seems to have
been forgotten.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c

index c4d23d4c36318b0ada8a4867c8088487bd3e1d69..b916f464f4eca1c509ca3b6147189084185d5231 100644 (file)
@@ -1066,9 +1066,10 @@ static int dsi_tx_buf_alloc(struct msm_dsi_host *msm_host, int size)
 static void dsi_tx_buf_free(struct msm_dsi_host *msm_host)
 {
        struct drm_device *dev = msm_host->dev;
+       struct msm_drm_private *priv = dev->dev_private;
 
        if (msm_host->tx_gem_obj) {
-               msm_gem_put_iova(msm_host->tx_gem_obj, 0);
+               msm_gem_put_iova(msm_host->tx_gem_obj, priv->kms->aspace);
                drm_gem_object_put_unlocked(msm_host->tx_gem_obj);
                msm_host->tx_gem_obj = NULL;
        }