From patchwork Wed Jan 21 02:37:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Ung X-Patchwork-Id: 431326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1AA76140277 for ; Wed, 21 Jan 2015 13:36:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754639AbbAUCgn (ORCPT ); Tue, 20 Jan 2015 21:36:43 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18748 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754423AbbAUCgm (ORCPT ); Tue, 20 Jan 2015 21:36:42 -0500 Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com id ; Tue, 20 Jan 2015 18:37:06 -0800 Received: from hqemhub03.nvidia.com ([172.20.12.94]) by hqnvupgp08.nvidia.com (PGP Universal service); Tue, 20 Jan 2015 18:35:34 -0800 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Tue, 20 Jan 2015 18:35:34 -0800 Received: from dung-P9X79.nvidia.com (172.20.144.16) by hqemhub03.nvidia.com (172.20.150.15) with Microsoft SMTP Server (TLS) id 8.3.342.0; Tue, 20 Jan 2015 18:36:41 -0800 From: David Ung To: CC: , , , , David Ung Subject: [PATCH] drm/tegra: Fix copypasta in host1x_reloc_copy_from_user Date: Tue, 20 Jan 2015 18:37:35 -0800 Message-ID: <1421807855-27853-1-git-send-email-davidu@nvidia.com> X-Mailer: git-send-email 1.8.1.5 MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Fix copypasta bug for function host1x_reloc_copy_from_user. Signed-off-by: David Ung --- 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;