drm/tegra: uapi: Fix wrong mapping end address in case of disabled IOMMU
authorDmitry Osipenko <digetx@gmail.com>
Tue, 17 Aug 2021 02:01:52 +0000 (05:01 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Sep 2021 16:06:51 +0000 (18:06 +0200)
commit8a44924e1400d75db5c6fdaf199038580df4f79f
treec8c654f52f13d2fada2fa96517535f81d050a289
parent71eabafac1eb67d590d4500eaf38177537ea6d4a
drm/tegra: uapi: Fix wrong mapping end address in case of disabled IOMMU

All jobs are failing on Tegra20 because it doesn't use IOMMU and mapping
function uses size of mapping that is zero instead of BO size, fix it.

Fixes: d7c591bc1a3f ("drm/tegra: Implement new UAPI")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/uapi.c