[PATCH 3.19 044/177] drm/tegra: Use correct relocation target offsets
From: Greg Kroah-Hartman
Date: Mon Mar 16 2015 - 10:12:42 EST
3.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Ung <davidu@xxxxxxxxxx>
commit 31f40f86526b71009973854c1dfe799ee70f7588 upstream.
When copying a relocation from userspace, copy the correct target
offset.
Signed-off-by: David Ung <davidu@xxxxxxxxxx>
Fixes: 961e3beae3b2 ("drm/tegra: Make job submission 64-bit safe")
[treding@xxxxxxxxxx: provide a better commit message]
Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/tegra/drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -190,7 +190,7 @@ static int host1x_reloc_copy_from_user(s
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/