Received: by 10.223.185.116 with SMTP id b49csp1018358wrg; Wed, 21 Feb 2018 10:39:10 -0800 (PST) X-Google-Smtp-Source: AH8x225SaUIqztfg7FXeS6VDtyGqerfDkS61NXiRqDh2Pta2Va3fzO1BWwZi5yVs+lv2SWf8y5Fp X-Received: by 2002:a17:902:f44:: with SMTP id 62-v6mr3887220ply.27.1519238350212; Wed, 21 Feb 2018 10:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238350; cv=none; d=google.com; s=arc-20160816; b=zxyQZKoTkNdaFlO2Tav9ct6rHHqEnUX/5J2ygne9ZDLBK172MyoqRE6osUrFV6KhTz ErHWX2OtRf5/U3XpzKL8Ary77V5dCF0EZJsoBEAqtT5qkS9Aa4Kqy+5pfc970zMuSuR0 zoIP+L82lil6tFec/4ZceVw2YVKLuiiVXdskFsR/nZ6zXSn9PZ6/AWVC1GkJOBgJ9np5 teM3ReYEAl2jDgZnAbiN1fA6tUpO0YvdGTtZPq3rc7+77ioPfgXu0v6AiP3h8GeyWfMb 8X+RgsttRJJAF2YiKjZbkV2woFuRgpEA7vS49K/51DKpYljIjsmuNwkisvYtRVWGgRBD 0mKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZUrY3YSSSkjDnywBAKXtUpvh8mcYlGAW18Y5PLil7GQ=; b=N7pBoBEkaXn6052qserW1tnKtsYiGGqhk/h6CGmEAlS43356ypPIDwVwC4pGeE2cHt cGYOvpjJ+09icGtitkikuwahlPyJyb6/TfjUL+0jk1dMV7vw5QiZlAcoLt5r7CGeBHac AEig2j1XIl2+27GoFE0EEQ+X0/fYUFIaXFfggDOnRBXXJj1wImfnjzImlhQp1146XkrC wfeexrnF5EFIe4zm9tZmv43aHgL34mtq8JI1AZIby/3tcKUQILik4uQSup3A2WrBmhZw hFDvtXN1v02gzNG/qQ6nbLN+M4nvWmZR0FIux5Ug2juHs219UoqqHWolLE7zFOYJBlzD KksQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si7986101pgp.809.2018.02.21.10.38.55; Wed, 21 Feb 2018 10:39:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753708AbeBUNLw (ORCPT + 99 others); Wed, 21 Feb 2018 08:11:52 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:45470 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753672AbeBUNLt (ORCPT ); Wed, 21 Feb 2018 08:11:49 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 326D6102A; Wed, 21 Feb 2018 13:11:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rex Zhu , Alex Deucher , Andrey Grodzovsky Subject: [PATCH 4.15 092/163] drm/amd/powerplay: Fix smu_table_entry.handle type Date: Wed, 21 Feb 2018 13:48:41 +0100 Message-Id: <20180221124535.418440368@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrey Grodzovsky commit adab595d16abe48e9c097f000bf8921d35b28fb7 upstream. The handle describes kernel logical address, should be unsigned long and not uint32_t. Fixes KASAN error and GFP on driver unload. Reviewed-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Andrey Grodzovsky Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h @@ -40,7 +40,7 @@ struct smu_table_entry { uint32_t table_addr_high; uint32_t table_addr_low; uint8_t *table; - uint32_t handle; + unsigned long handle; }; struct smu_table_array {