Commit c5131a98 authored by David Ung's avatar David Ung Committed by Sasha Levin

drm/tegra: Use correct relocation target offsets

commit 31f40f86 upstream.

When copying a relocation from userspace, copy the correct target
offset.
Signed-off-by: default avatarDavid Ung <davidu@nvidia.com>
Fixes: 961e3bea ("drm/tegra: Make job submission 64-bit safe")
[treding@nvidia.com: provide a better commit message]
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent b7c386cf
...@@ -152,7 +152,7 @@ static int host1x_reloc_copy_from_user(struct host1x_reloc *dest, ...@@ -152,7 +152,7 @@ static int host1x_reloc_copy_from_user(struct host1x_reloc *dest,
if (err < 0) if (err < 0)
return err; return err;
err = get_user(dest->target.offset, &src->cmdbuf.offset); err = get_user(dest->target.offset, &src->target.offset);
if (err < 0) if (err < 0)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment