diff options
author | David Ung <davidu@nvidia.com> | 2015-01-20 21:37:35 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 04:14:59 -0500 |
commit | 31f40f86526b71009973854c1dfe799ee70f7588 (patch) | |
tree | c75cbebd8fcf5a8da9546d577ecdf99cb77b061c | |
parent | 359ae687dbd16c76f5519a5750444f5a3b00ad18 (diff) |
drm/tegra: Use correct relocation target offsets
When copying a relocation from userspace, copy the correct target
offset.
Signed-off-by: David Ung <davidu@nvidia.com>
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 <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
293 | if (err < 0) | 293 | if (err < 0) |
294 | return err; | 294 | return err; |
295 | 295 | ||
296 | err = get_user(dest->target.offset, &src->cmdbuf.offset); | 296 | err = get_user(dest->target.offset, &src->target.offset); |
297 | if (err < 0) | 297 | if (err < 0) |
298 | return err; | 298 | return err; |
299 | 299 | ||