Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp338317ybj; Thu, 19 Sep 2019 15:20:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr87I3yXtnLWfdvJgOBqSa6VLRkE8HO59Ni8DPQi8l/CzR1c5dMGEuzVs+zotoPrtD9QU/ X-Received: by 2002:a50:f616:: with SMTP id c22mr18164737edn.235.1568931618713; Thu, 19 Sep 2019 15:20:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568931618; cv=pass; d=google.com; s=arc-20160816; b=BAAQ2kYqFOEExS+wTYcbWOifeR3iOkK0OFertJPWfJS1HjH8S/zb7vsLbmlxE6bdZ6 DG7pwB//BCfGNIu6DQmPtK4WFlJa0ondmdSuAgKiRMD3XGAYOZMtKJDp3+Q/RjJY35OA s7phTbt8lQbDZjClIgA7Fh0ED1Jv0iCV2oeUST1IifEeLgrnHjZd4kLymAuoBmkFfqVy Sz3Hkq0d9KlsARgodfmWKtnOz1rr/X0l5YxpvnMJEcN7l4T8fdQkANo4R/drLDIGv4Na iJpVLBq+VPXFRolvPd01JDyY7XP28b+uMPLd+DrEc7Yz2liQsxt16BKBscxtZdvfttXq N62Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=5q4sEsma4jUXgl9k8GFPltdRXR6zOyqmHPDK+cqGTnI=; b=yedR2AbSP0gYCVd097JJIjMGwYCPUfhJsgHFwk80CXMmWL762He6t0FqM8iZxvnCIG shrfZtQtzdr+0GrZujEBzdARmpWNgPe8KvKjdmYxy1JWUb4kQk6IfMvOa0vj527FlPBH QRrZpOSnAFaWA5xPcDDiN0hnAtCrce45d9e3TSK2lsDlMzkr1teGclOE3NI5wliHMvJF wXOv63xq7wSKE8WCCUVM40pG/WYyAATAwaTu2AhEceg+Nqy4AGs8lfcPMMETTdElgAzg Oxhy0uRBeSt5XUOKsia4791tE6YKvLiinVr9cRjA0AKYdEMqcqZsucFRFydysKgSp4D8 h78A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=AF19MTC2; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 d5si73721edq.60.2019.09.19.15.19.55; Thu, 19 Sep 2019 15:20:18 -0700 (PDT) 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=selector2-amdcloud-onmicrosoft-com header.b=AF19MTC2; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 S2392642AbfISUiw (ORCPT + 99 others); Thu, 19 Sep 2019 16:38:52 -0400 Received: from mail-eopbgr740044.outbound.protection.outlook.com ([40.107.74.44]:18992 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389552AbfISUiw (ORCPT ); Thu, 19 Sep 2019 16:38:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A70wp4Jm1S3BBWIa5WMHno+Dc7KuD497TyOMo/g1OU0pmW6lvjQiF0bd/msubIbLJLmAa258ucfqjUOeFCfRqdiC1GuVPPQMynjAUL0TjxAzte9KpUP0rpMG8XnL8GmELrfeIaIbD5qW3wRi8oMMVMWwNMWHEV6vO66Ase4tMtx2fUmDtFoEcYrtlJZZTJmUBe0lERY67RoFETkTBov7I6Yn3kdSIkhpBfZF/JS5eqwn1RpiJDkNViOVkVkeoOtNm2ENR755tJTx5trZcDI7BlMBAUhzw49ctwdBtROzcUZXoD7wCFKyw+FuXCy6e95gajbPb9I1OdmsFouVG8mXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5q4sEsma4jUXgl9k8GFPltdRXR6zOyqmHPDK+cqGTnI=; b=Pdhgotr5b6SMEtOkVdVjtNIgekROmFaRJja9eX8s63HLZXVg2mSZBhuuX3V+3KpwReSwD8hFP9h0gBB/9QsLUDFnQn2w0tnhOLIpI14K/2ah9hms/RVNxtQ+Vl5gf8UYp6SxJZj48Lk7YJXHhbu51fi9qxXJAxHHY2K6IWUI3v/GGrgVymeUebWBtpDWtaXg6Aypcl9rg8gxdJ7PFOGIHrAT0spUNrzSzCpNxuEZQV5DNXi6VmLXoP5+UInY4npTxEMK3mAUya+ebIWpDnYKnOr067Wqa4tJriBQpGTomusc4deIyNfGifH3h0v82w25p28Ein7mjK64mGWnAnYKZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5q4sEsma4jUXgl9k8GFPltdRXR6zOyqmHPDK+cqGTnI=; b=AF19MTC2s6dCTWUkbQ26esE3jsEXowDa6t3pyZCjvtOSDhyB5zzNAEp7hGz0cygTYBR89Rg3wepDVnOln1ZQatF5lb0lSNvgg2oSdTIzpIFEN5dAFX8th/O/T9N3upa2u0pUCujD8EUGZHod8Pg0/5JvnWAO7MlWoYWADFznyc8= Received: from DM6PR12MB3947.namprd12.prod.outlook.com (10.255.174.156) by DM6PR12MB3099.namprd12.prod.outlook.com (20.178.30.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.22; Thu, 19 Sep 2019 20:38:37 +0000 Received: from DM6PR12MB3947.namprd12.prod.outlook.com ([fe80::3d2a:29d4:df8:4d5]) by DM6PR12MB3947.namprd12.prod.outlook.com ([fe80::3d2a:29d4:df8:4d5%2]) with mapi id 15.20.2263.023; Thu, 19 Sep 2019 20:38:36 +0000 From: "Kuehling, Felix" To: Allen Pais , "dri-devel@lists.freedesktop.org" CC: "airlied@linux.ie" , "daniel@ffwll.ch" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" Subject: Re: [PATCH] drm/amdkfd: fix a potential NULL pointer dereference Thread-Topic: [PATCH] drm/amdkfd: fix a potential NULL pointer dereference Thread-Index: AQHVbklJQb5FSYNxgUiE401HDmRgQ6czd9eA Date: Thu, 19 Sep 2019 20:38:36 +0000 Message-ID: <62826857-8364-262f-cbf8-17b15dbe0b09@amd.com> References: <1568824231-4007-1-git-send-email-allen.pais@oracle.com> In-Reply-To: <1568824231-4007-1-git-send-email-allen.pais@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [165.204.55.251] user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 x-clientproxiedby: YTBPR01CA0010.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::23) To DM6PR12MB3947.namprd12.prod.outlook.com (2603:10b6:5:1cb::28) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Felix.Kuehling@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: debf31fe-35c8-4be4-4c3b-08d73d4158b7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3099; x-ms-traffictypediagnostic: DM6PR12MB3099: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(396003)(366004)(136003)(376002)(189003)(199004)(6512007)(4326008)(229853002)(6246003)(71200400001)(3846002)(6116002)(31696002)(86362001)(25786009)(71190400001)(256004)(14444005)(305945005)(7736002)(65806001)(2906002)(6486002)(2501003)(6436002)(66066001)(478600001)(65956001)(64756008)(31686004)(81166006)(81156014)(8936002)(14454004)(99286004)(5660300002)(52116002)(6506007)(386003)(53546011)(66556008)(186003)(26005)(102836004)(316002)(76176011)(11346002)(446003)(476003)(2616005)(66946007)(486006)(36756003)(8676002)(66476007)(54906003)(58126008)(110136005)(66446008);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3099;H:DM6PR12MB3947.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fpsJPEYf07uHl6gd7HYQmByPm9I0UdGjEoybmJr8hPWXt/RSHaqOUuqQGNL+i0iWmQnOz/RQPzzQtD37qM2JcmYrTV1mRaoc7SlmF9srHtrifgLd23xQOGwgToGQOlmhN/F8qtVDWANiJVrsOElv6AVD0KgTcUs0HYBq3h1qWemfr1gLKngICZbaA/u3bZkFnZPdJRIRpn9lrA5mDeN0wyHoC22DUS12HXcD/g30URqxeIbYPTopfE0kZBWUVI5K7fIbg3G+DkrmnqwmYmmjN/kjP6+jkjUrR17vC0BgloDubFCALxOGo8nTlQ538VGpnFoTliBfx7N2fXXNhLyZ00JsizbI+L66q4pK7t/62ZiAynFgRxoDZyDtvfxTEXpdSaIJrIgvK6EC5/kBb4xIpJxf64fMixwMQCrZpkIaTTg= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <762A7A9288353343907D787C56AD1497@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: debf31fe-35c8-4be4-4c3b-08d73d4158b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 20:38:36.8049 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dzFFIrGOpAU7GY4iIDTHtH2RlZ2b2/ksArC9CmtmW6QQTrk5UmxiAFG6uhSBBTPdZyK8MGcNq58YL2BUatbNyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3099 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS0wOS0xOCAxMjozMCBwLm0uLCBBbGxlbiBQYWlzIHdyb3RlOg0KPiBhbGxvY193b3Jr cXVldWUgaXMgbm90IGNoZWNrZWQgZm9yIGVycm9ycyBhbmQgYXMgYSByZXN1bHQsDQo+IGEgcG90 ZW50aWFsIE5VTEwgZGVyZWZlcmVuY2UgY291bGQgb2NjdXIuDQo+DQo+IFNpZ25lZC1vZmYtYnk6 IEFsbGVuIFBhaXMgPGFsbGVuLnBhaXNAb3JhY2xlLm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