Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1180765rdf; Wed, 22 Nov 2023 07:37:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjO96hJZs9kWnMTAOzCx5Se3v5eFg8gMqUg/s4peiDn2qH91KS4ADJpdMJmOcwbVDPpfXL X-Received: by 2002:a05:6a20:5491:b0:189:fd93:c969 with SMTP id i17-20020a056a20549100b00189fd93c969mr3100327pzk.26.1700667476433; Wed, 22 Nov 2023 07:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700667476; cv=none; d=google.com; s=arc-20160816; b=DQCCMDt3/30g0UtD6k6mDNOM73qJiBkGDTPrc6/pVZpONsa1vsF6L6DcqrV7uKGtWn M8ulIBmeYV/HcTPhva58P4WIUzu8sf6M6cItVtYpvumatSzkqs6/zOTTbNLV6mAsj7IK nz6i54erawSgF8WEfRLBqO9UjgyFJwoc0VPk7w2vNYBVy5QOXe23rB1s/dm8YofNAdLN PpVJY5AIm1g9oiGBsQWY9Bzp3EbhXIUbpSE34nuEdl8/xY2SSjyoDLXxx2NgsE5+KLw4 JWHNfau/v1pcWgmePRaxzvhf19WKnTZRalnUbZiOKnjr7UwzqOsAZRgASy97Pva4XUgr bGyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KDgqYKd0/eQsxiTD72Fk60psU3BHgWDWqDyxDyFtijk=; fh=qIfZZkvMV7auboJK3RWRSkbOINTmnsFDdy4xOL7E/rE=; b=Bn7cj/SilAuKuY6ah1z1Eub28cNhtlTvcUOY5x98476yd2p0OluMk97v8QKrjsp1AX SuXkWpkvifM5iSNnQ05L467CaYSX2UBrcvPMlEdoCUu7R0mfbPQERovQX1l57kt6TJZr iqhO8zGke8UcJkM2w/+IBhqxWHcWNYVm0ba5rVibJCkiUt+eSqkSnCxs9s+P+7XlJBYO +KS8kgckaSvq4hMVGP4EleFz2XkeVo4YBVkUiFZO10w/W85cu4dPcJ9BXaiETlGg5uwB xQVzy7leDdg6HZgeMbR/daTPRPM8wwUbj3QnTLpGfp4D4lbLGHhx1Wb7hk+iAzumTTAO 67Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfhvONRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h13-20020a170902f7cd00b001cf7ce5e6e0si699012plw.330.2023.11.22.07.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:37:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfhvONRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B46A6827A764; Wed, 22 Nov 2023 07:37:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344396AbjKVPeA (ORCPT + 99 others); Wed, 22 Nov 2023 10:34:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjKVPdl (ORCPT ); Wed, 22 Nov 2023 10:33:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E3510F8; Wed, 22 Nov 2023 07:33:13 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D966C433C7; Wed, 22 Nov 2023 15:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700667192; bh=tsfvs86aMqoPF1wuQaLY1UWqDFl9Q+xKTuDaoPAgxQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BfhvONRjUjf2nqK16BzmmGxTarYvY2GPim3lhQml90UR21RJ0y7+wYH77HpCiyvlu 5cHpMfhUFQfIDnm8Uc9LM4xa6KZ20QuZPNRvD5Pqe5rVSVsHUH5kEPQl5BGkSSenNB bpTapWwsfstzJynBIUw4ilGpFsbi2qh2Rpnlaey6xL2hB0SQ79GJQWQ1Z2wiyvFefA DPViHpG3loIBW+5Z2Ns/61Fy6QIyfIBRlrcFO75HO8LynXFTMkSrfqflDi3REH+ayP BNnoms+Dr0AdQ47JI461/fOtPNStAtiL2N/C4TVz6Qb4cWPdoQwCJApy9XqdPcs2nh sm8VD/De53uZA== 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 6.6 16/17] drm/amdgpu: correct chunk_ptr to a pointer to chunk. Date: Wed, 22 Nov 2023 10:31:45 -0500 Message-ID: <20231122153212.852040-16-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231122153212.852040-1-sashal@kernel.org> References: <20231122153212.852040-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 6.6.2 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 07:37:24 -0800 (PST) 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 d93a8961274c6..bfac7a93726ed 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -207,7 +207,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p, } 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