From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73BEEC61D99 for ; Wed, 22 Nov 2023 15:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344650AbjKVPqY (ORCPT ); Wed, 22 Nov 2023 10:46:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344779AbjKVPpo (ORCPT ); Wed, 22 Nov 2023 10:45:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB0982D69; Wed, 22 Nov 2023 07:36:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44719C433C8; Wed, 22 Nov 2023 15:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700667414; bh=o3f4VkGW0yexAr+VkV/QIhWOsoaxPdXTZYS43eG16rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j8slBQByNq+9jE7RBXIBevFFg5TlcKYh5jcipvPT7EFYxfP4+tsc6KIZplGVREhrK QdLDiWXVrRPPYwuqJdKqdyxlvtEZPbBSlUO0kt3nIQB4vwf1y+nMNd7HAWMxoH6MpK ACQhAsDtZQE8TbQbqNJkkBSpEB/mUBIAphEhNUezVkZhSKBTRRbShvXgv8DkowJ8Gy 4VNj7qWGQ05I11JPhooE+9z8DWyDaPfSZrZTlF7nGwzGXnZxmHX/BI7G2VLOkQQ0w5 xH2Odk9BnE5zHrX8xInigwvRUU32o+rIgl/T+KAnxgKud1+BbSlpGa5T4+b2ee/zi2 5tyPpi34ko5fQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YuanShang , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Sasha Levin , Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, guchun.chen@amd.com, srinivasan.shanmugam@amd.com, luben.tuikov@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.19 6/6] drm/amdgpu: correct chunk_ptr to a pointer to chunk. Date: Wed, 22 Nov 2023 10:36:30 -0500 Message-ID: <20231122153635.853495-6-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231122153635.853495-1-sashal@kernel.org> References: <20231122153635.853495-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 4.19.299 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YuanShang [ Upstream commit 50d51374b498457c4dea26779d32ccfed12ddaff ] The variable "chunk_ptr" should be a pointer pointing to a struct drm_amdgpu_cs_chunk instead of to a pointer of that. Signed-off-by: YuanShang Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 70e446c2acf82..94b06c918e80d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -147,7 +147,7 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, union drm_amdgpu_cs } for (i = 0; i < p->nchunks; i++) { - struct drm_amdgpu_cs_chunk __user **chunk_ptr = NULL; + struct drm_amdgpu_cs_chunk __user *chunk_ptr = NULL; struct drm_amdgpu_cs_chunk user_chunk; uint32_t __user *cdata; -- 2.42.0