From: David Ung Date: Wed, 21 Jan 2015 02:37:35 +0000 (-0800) Subject: drm/tegra: Use correct relocation target offsets X-Git-Tag: firefly_0821_release~176^2~2312^2~25^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=31f40f86526b71009973854c1dfe799ee70f7588;p=firefly-linux-kernel-4.4.55.git drm/tegra: Use correct relocation target offsets When copying a relocation from userspace, copy the correct target offset. Signed-off-by: David Ung Fixes: 961e3beae3b2 ("drm/tegra: Make job submission 64-bit safe") Cc: stable@vger.kernel.org [treding@nvidia.com: provide a better commit message] Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 5bccb20889f7..7dd328d77996 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -293,7 +293,7 @@ static int host1x_reloc_copy_from_user(struct host1x_reloc *dest, if (err < 0) return err; - err = get_user(dest->target.offset, &src->cmdbuf.offset); + err = get_user(dest->target.offset, &src->target.offset); if (err < 0) return err;