Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7902347imu; Mon, 3 Dec 2018 22:41:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbC+jZ+XqF5YFfkQebV3Y0dAg1un0DxnpZiAP21/HVCXNFNf/VjsFZXWUhcdGuornP7t5i X-Received: by 2002:a17:902:f81:: with SMTP id 1mr18293538plz.174.1543905696560; Mon, 03 Dec 2018 22:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543905696; cv=none; d=google.com; s=arc-20160816; b=rFBSR09ewjCd8OiH3zAHLDJVZvIhYP25QLB9V9XDy6/xv4XJ9fGpTR3qQRGkAImt9i SpZN3fkyQ6FSkg8WgV3p4aOJEmivYkKiQUHmVgc6+pxYW7Ne/J04V+dHAMcrCzq2OoJZ BItl63ILloGf717UPi11YChW2O+ogEp6Kz58k2JdUJDr6qvFVEXQBn+Xe+ps6513RcQe FLIfhsIKD16gbQOQm1rM6rJT60TKZdBz0mmX87pTKS1r6+hMuC7/32D8nk5bZVBEr27m FQbfMedRQVEl4z/nTedVSCEsKFTjt9tY0JlhKk/f9RouZa9tr6xjpIXiyZD0r4TYG8hW vihA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=oESeI/KFKsvE4xWI0O1H2ohbsgzGizMtxzn6Xma/Y5I=; b=ly5F+Z1IYlbrsz/h1zBjfhKMEO2jGDzMMP4eXsWL8mLkInE4rlUmdhhJXs7DTYnGCw mELxKeTxMOdCV5gZCdInebrxdcojLK1fzCQrnWyscWMYyQl+Mi4mDy6+wkm2GJCntkYC g0wkHYvEz/NJjyuKEbxdTUwvzskzdp7WlH5MZAJZzFGAO0R455Sjxu6v2GeO8T/x2TYv Z7u+jX4Mj2tK3pbljaNJXsUrXwD7r1FVr8qT+ZjaQjHdWF8KbIsFicBuh9BGcVaZSi8M g6YpAzSK4zzv/0V5OIHf0a7I3IDHhZUVTjOCH7ILHBB13uK5TJXVo2ZRG9njyq60Zyh/ 18CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=kSgvjUHZ; 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 x15si14769789pgq.378.2018.12.03.22.41.21; Mon, 03 Dec 2018 22:41:36 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=kSgvjUHZ; 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 S1726041AbeLDGkp (ORCPT + 99 others); Tue, 4 Dec 2018 01:40:45 -0500 Received: from mail-eopbgr690049.outbound.protection.outlook.com ([40.107.69.49]:53216 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725983AbeLDGkp (ORCPT ); Tue, 4 Dec 2018 01:40:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oESeI/KFKsvE4xWI0O1H2ohbsgzGizMtxzn6Xma/Y5I=; b=kSgvjUHZd4elUStlv1v+2B5IQ031iBM7GfkLP59I9R68a0AHpBeTNCYWxHXemuawdDGzKTQ7jB94wjx5FhNeOMgQAcZBP6rsZoMDrAtnonmGCxErXJEG/2RcSjXgQsCVWI8stXCjGb/J8Ww/ka4FH5iqxTuV4s61PK85Okm67no= Received: from DM3PR12CA0063.namprd12.prod.outlook.com (2603:10b6:0:56::31) by BN7PR12MB2628.namprd12.prod.outlook.com (2603:10b6:408:29::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.22; Tue, 4 Dec 2018 06:40:01 +0000 Received: from DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::208) by DM3PR12CA0063.outlook.office365.com (2603:10b6:0:56::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17 via Frontend Transport; Tue, 4 Dec 2018 06:40:01 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT051.mail.protection.outlook.com (10.152.83.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1382.18 via Frontend Transport; Tue, 4 Dec 2018 06:40:01 +0000 Received: from [10.237.74.158] (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.389.1; Tue, 4 Dec 2018 00:40:00 -0600 Subject: Re: [PATCH -next] drm/amdgpu: Fix return value check in amdgpu_allocate_static_csa() To: Wei Yongjun , , , , , , CC: , , , References: <1543905576-38015-1-git-send-email-weiyongjun1@huawei.com> From: zhoucm1 Message-ID: Date: Tue, 4 Dec 2018 14:39:52 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1543905576-38015-1-git-send-email-weiyongjun1@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.34.1.3] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(39860400002)(136003)(346002)(376002)(2980300002)(428003)(199004)(189003)(16526019)(67846002)(65826007)(26005)(478600001)(186003)(72206003)(6666004)(6246003)(11346002)(446003)(53936002)(356004)(426003)(77096007)(4326008)(305945005)(65806001)(7736002)(23676004)(97736004)(3846002)(6116002)(2486003)(336012)(86152003)(14444005)(47776003)(76176011)(5660300001)(64126003)(65956001)(50466002)(31686004)(2870700001)(2201001)(6636002)(31696002)(36756003)(229853002)(58126008)(16576012)(110136005)(316002)(54906003)(81156014)(68736007)(81166006)(8676002)(104016004)(486006)(105586002)(476003)(2906002)(106466001)(8936002)(2616005)(126002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR12MB2628;H:SATLEXCHOV02.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM03FT051;1:hK/xc+ltiKzdg/7uzPu3GcTyhHAmfRnm18tY8inNyiCQRnSePoIOtnbkpWPIpGeleHMztXwzDUJjlhP9AX91SsTaYQZ4PJCMxsFMxnRn6VHNzYSobz+jN9JZnwYLIvEa X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ed89307-2e8a-4ac4-918c-08d659b35125 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193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DCc+12cyaj9NjASyxWfuGKK+P77hwC3BV17mss+phY4yByAa08vNyVxYfgisCDBDqm0PFce54YvuIlNlp0I6G3ERISgdc88EHXybX+fFmTLd/xfZtOIgAPqMVKXAI8ZnkkkihFfvzGfB2SsBKXXrCXd+P1l1VV8RnkrG3m0Rgs6c91rK2c6Ly9Zqv1Sf3SOtyU1B348vswD+qKO02JuYlpyRVjjDDIObU/CFEFRRG4MAL2wJavu8TqZpKhBjsij0WI82JNAZMsChiJe0KCEzprxZgFgi3kBBrmxiFCabSWY1uSFrq1zaVDBlXAnqbwILbD52t5Sq7GjcuU43iu28TyrDnZknxMqA3xKYVVlkT4PXBIdC3DHzXZXOn7xmfCRDZEtLg+ATnQZ9YKH79A+vdL5iYJqKehl9UfyqJ8rcq3uiFRLjf+I2ABNeJt7o50HpfP+4PscPHLrW/wKdROxbjG8Tk8tvVRsvhz4DS/cDpOPo/nIkIgq7CQIU86w3VXk2 X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231455)(999002)(944501493)(52105112)(93006095)(93003095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:BN7PR12MB2628;BCL:0;PCL:0;RULEID:;SRVR:BN7PR12MB2628; X-Microsoft-Exchange-Diagnostics: 1;BN7PR12MB2628;4:RqrdZbUU/x/5N7F+cF46cndAGWcls9itrdMZ6z0lPZ16Liw5SJUNo2KCcuS6oxQj4ewI8Dfwbxs9qMzWT+riaayTO1m+p6smAsyss6QjOqU/nSgZmz0N3MPKlCMZZ5N84a/dRxwpuO1q2d2GuM8XGHu7pT8ualNZ+6GiBelq9cRArTw3fz5sRJDHl0pVjAAz80Rl7I99PDuU3a9fgiOV3gNF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fpdUvtXXvQ59/NZKgw8HuLBjSOjYEsOCeI9pkle07F5cIzgj8Xw0y18hGEroYsRPsD3svxbcIjMhUfOW91VEOeNa1MOQO6sUAGscUlAB/TTrcCja3hSw1ZAU7+XftE3Bx3/FlAlyki192Wsz8KLXdIzRrTcbByMEuiFWfn9dHD/1ieC1j+UVYPybtq9ZJurs2GbJ3Wjl1Q==;5:DovRbN7tpkbMUEw8U9ES/jLm5T89gqeCp9c5yROvQgb5cBQCgaeCvBA/baCb9NNZNarA/JoyFUFcDHnh1L2uJ83iIxQjA+2ZmYArwtC//XL7NjWB2LXozj+/Iid70wy/FwLFNumUwA7jAyD4n+z6sNEQ5HObrKGi+aIitKVIOxE=;7:txXqFa6AEdxO3d8ESpK9Cc+sqeZVaWLVj+nyLe2tbYRwrWWgVNec6bkMpAz4zQ60hm7EeDX8wPV7zvYUPv9II8UOiTDGBNDwQWDOibRXVcXolQyPLwbUJis6+p3K/OE/fkUURVwNBAiNZITwsygrKQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN7PR12MB2628;20:j4PnHPR0pMV9K0gl67pKav3By9rLn1f1hErj2DB6UX8cwdwuNKAznfukKOSbDkGakvqlN1yP58exwqJXmI3gKskWigfW5v63abkALfk86xDTkcyko57+FL7r2ayPWmUuD8y6xrA/UydYEyLJp6DphtqDXbIgGgNJD2Tfnfrikq2fbzm6fxegc8kCxV1tL0SGbXKdUQ6NhWcYfUF6C8o/8d9ihrsLMchyLSM9D85Ay3oS0pSAwjlS4DA3zzWUrfJn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2018 06:40:01.1813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ed89307-2e8a-4ac4-918c-08d659b35125 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR12MB2628 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年12月04日 14:39, Wei Yongjun wrote: > Fix the return value check which testing the wrong variable > in amdgpu_allocate_static_csa(). > > Fixes: 7946340fa389 ("drm/amdgpu: Move csa related code to separate file") > Signed-off-by: Wei Yongjun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c > index 0c590dd..a5fbc6f 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c > @@ -43,7 +43,7 @@ int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo > r = amdgpu_bo_create_kernel(adev, size, PAGE_SIZE, > domain, bo, > NULL, &ptr); > - if (!bo) > + if (!r) > return -ENOMEM; I guess original is correct as well, if you want to change it, you can make like below, not your 'if (!r)':                 if (r)                         return r; -David > > memset(ptr, 0, size); > > >