Fix copypasta bug for function host1x_reloc_copy_from_user.

Signed-off-by: David Ung <[email protected]>
---
 drivers/gpu/drm/tegra/drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index d4f8275..d8c9fb7 100644
--- 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(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;
 
-- 
1.8.1.5

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to