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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9027C433F5 for ; Mon, 15 Nov 2021 14:05:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A7D2C61ACE for ; Mon, 15 Nov 2021 14:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbhKOOH5 (ORCPT ); Mon, 15 Nov 2021 09:07:57 -0500 Received: from mx0a-0039f301.pphosted.com ([148.163.133.242]:61582 "EHLO mx0a-0039f301.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbhKOOHw (ORCPT ); Mon, 15 Nov 2021 09:07:52 -0500 Received: from pps.filterd (m0174677.ppops.net [127.0.0.1]) by mx0a-0039f301.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AFDhmGn017233; Mon, 15 Nov 2021 14:04:49 GMT Received: from eur04-he1-obe.outbound.protection.outlook.com (mail-he1eur04lp2057.outbound.protection.outlook.com [104.47.13.57]) by mx0a-0039f301.pphosted.com (PPS) with ESMTPS id 3cbrpj83w5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Nov 2021 14:04:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvdlkRrvbuGwe5qU0dU0G3oZ0mpTJdur+WZl6RgcDGlBPZGDdFIi6G8NKtDvSi29z2eXVt/WcuPSbuvLE53Zwy3KvjFjkFqXtkhdjeMiWzFaVC0HHkEQAZKjPZoTAi2lmdO3rKLflhY3JDeLhm38CPxkR/0pmmW6dx1IBluVDGpS3RrvrWxSGjno4h44Ch9rjIbGXqdRes2WXq7B6qoGuOzmuUNDgpI1chQ2qANrnM8H8oBhxDg53PXbZAvuxPzvqPMP5RgP1JaJqj7Qv6Jv0tLb7w65cd1/bQgoIOStDOEM6vBk8VF8DotMjXeomPh5J7vnui68XffKFiJDOKEgBg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YdvDzg0gK7ltXilC9ZV43mCJsJxkkgJAV7gwTIy6P5I=; b=jJbO1bTVcD4ZO67UPj5z9pcFhpo0SJm3mT7KQZ6vbmsJeY2QOBn/KxSE63C9Nn1MMy6orZFzmpbdWrVKRM619eDSIpviWhu1UUTQhbGDEg/3aik2zmVIa4WWec56nrkrzwzFowbRlSykGCpS5WOxnnQfLsKrbASKePtwe5QGdmvbSbgN8yrLSP8pt8cwWzPPt/dPviX/ah+GfuRVMaB5iJahcRo6NsJk3ohXIDwbLFm/QMlGg71rllrTjYWOfRvT4pN9mf9a0AAx43IkW5pC4Jntb4CMFB9ktxmIo2/vS7jIu1mBHBzrdyuDrXbp9LpQXyjMgvDE//FbfNPc+ajmEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YdvDzg0gK7ltXilC9ZV43mCJsJxkkgJAV7gwTIy6P5I=; b=ST6LHcOA6J+vsn31D5g27/ME+PIpk3f5qB1qSV9NgTyuy/vkik/O4NRwcrRydn13JnxaSD/f7WWaaedXgvXQk/vxdFvZEhXkWs+5EvV9gdpGpt/ye6KgQjJoYoF6y5Nfo16UhNgiBj//Vcg03rWbVROZqFrEcRI/nXCSlpIR1TPXTFGX8ResPTjzCe06EexJd6vd7e3QsoATLEuPtPTzrApn07IPeDZ0epGn1pdfCcBglYBZ0PoeKk+2fHRer9GCXqzka56AyrONmY+MxvBGo/rwSPq3YuV5rrhygOY23vpGaAwMLYUMHzLcOdeTnBCr18rS7ecJMmn3fdqTcs+UUg== Received: from AM0PR03MB6324.eurprd03.prod.outlook.com (2603:10a6:20b:153::17) by VI1PR0302MB3376.eurprd03.prod.outlook.com (2603:10a6:803:1d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Mon, 15 Nov 2021 14:04:44 +0000 Received: from AM0PR03MB6324.eurprd03.prod.outlook.com ([fe80::c038:e032:595a:651]) by AM0PR03MB6324.eurprd03.prod.outlook.com ([fe80::c038:e032:595a:651%8]) with mapi id 15.20.4690.027; Mon, 15 Nov 2021 14:04:44 +0000 From: Oleksandr Andrushchenko To: Bernard Zhao , David Airlie , Daniel Vetter , "dri-devel@lists.freedesktop.org" , "xen-devel@lists.xenproject.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] drm/xen: fix potential memleak in error branch Thread-Topic: [PATCH] drm/xen: fix potential memleak in error branch Thread-Index: AQHX2dM/C7peAofhs0mLDS2TsBGiLKwEn9OA Date: Mon, 15 Nov 2021 14:04:44 +0000 Message-ID: References: <20211115034504.4993-1-bernard@vivo.com> In-Reply-To: <20211115034504.4993-1-bernard@vivo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bfbc2cf7-0852-4745-d5b0-08d9a840e076 x-ms-traffictypediagnostic: VI1PR0302MB3376: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TDZoGIa6X86gZLV1gN/v44d/5S9iHhpzOK8f/Fvc7X39L7Qs+wQ8h/HD3EQEW0fSMC/yQFlZiRjaD+dOdHHBSQaNaPFd47oRQJ7EM+94ftmeZaD4MV6935ArzVrdbMzPWpgJdl5sTpfisYouk2ba9oK673mcvl8ph6+AAJjwHk5TTvYJAKjY1Gg8yuRGnxV6BXHMviSLUQHA4k66U+yLkU7/ZHo2z+KmQj9KcX8ubQ6Veqr2KYggGEr9TRAAP5+Qlt8kLOgs1B18K20dlb1SgBhZ4eYFLA6ER5O+Dcv/hMgcYH0UJiMvficjGfpUm6byVGnw4gZVMbCb6l+z3gg1qy96A+wfqmiBPbRG9mqKRTunWWSA7Yb7k6wgguI1NqYp8/oCZnPDps6903tFLDBiOxvYoXZjT4blmEFBwSXoVUQorEiu5bReVYPV00O5hjuBixOrxmPjgrDHo8MRzvn4kYCH9YCx7Mw2vbf2oN7LbpI8zFFl5HRze6he1OVueZFX3aNNzJ42cFnvg+WHtXDLCYc6WrFcIwsFbbukj5s30qrQCQmmfMGLrFggnEHX0Mi3YPqMp23H+eNn2npFGHGPacnMowIiv9UOFpehxojsG2Pi9bzi2T4INw5cRxjOxEyOFAZOVViIaj1nYD4fQYwBPQOGsVM2Tl5XmmHeB0Wgr61KZnoweDCSIq1uJQrC1dvLrXEgrbvdJSVL1Num4kab5pKLSzgKrmo6NfMQgl8wzKqTdey9FFOX/03Tpfx7cxlZ x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR03MB6324.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(26005)(8676002)(122000001)(86362001)(5660300002)(66556008)(38100700002)(66446008)(64756008)(76116006)(91956017)(66476007)(66946007)(186003)(38070700005)(31696002)(6512007)(2906002)(31686004)(508600001)(53546011)(6506007)(6486002)(8936002)(36756003)(83380400001)(2616005)(316002)(110136005)(71200400001)(45980500001);DIR:OUT;SFP:1101; x-ms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Q1djVKZHlzWjl3ZVNH?= =?utf-8?B?NEZnc1M2YzZDeS84OUpMeGRmZ0E4RkJpN1lPMjhVUFF3MDFwQ0xxV2N2SXZz?= =?utf-8?B?cXVQMGRZSEJZb1U4Z0lrVkt1a1dGVlY0RC9jbUQ4a3Y0SnJwdkVscXZISnVU?= =?utf-8?B?ZWR3aFIyWGl0M0hvVEJFOWpjL295UlppT2dqZTY0YmN3akE0VitJbm9aeHNj?= =?utf-8?B?VzJud0t0VjRzK1JYaVphdDhvaTJEVFZQZlVybFVHaVJxYm42SXBMdWFnaXZk?= =?utf-8?B?Z3R3aTZGVWQ3NGlpZjNtKzlNZERrUDVrKzdraHJMREx3ZVMydzFWMEZ1R29m?= =?utf-8?B?UElWZ3RvRE9tVGdkSEQ4NTFnLzNITFhTOXpQMjN2eVVuRlh4Z21QTFZuNVZD?= =?utf-8?B?Ny9XWFo3dkJwQlZ1Wm9wQUQ1QXJCUzUxY0FOMzByZGxCZERTcGJKb2kxekR5?= =?utf-8?B?YWxGdDJsWkVHcnlQeVVTUjV3WE5La3JhWXR4S3YwTUVVQXZXendsSWJydnJF?= =?utf-8?B?Tjc5T09nbnl2cncybGZGbEtKOSs0YXdNYTdlQ1ZSS3djZ2xqelRGN0lBditC?= =?utf-8?B?REg1QVgzQUFxcmZRTFA4UWFWS2psMnZsREZGWStrajNnYnRqcXdCUT09?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR03MB6324.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfbc2cf7-0852-4745-d5b0-08d9a840e076 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2021 14:04:44.5320 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2oORsUDdmffVqZT00DTwgLdpKeXy0Ft5FOPG3EkmL7tZ+q10xCsyfRBI/oQ16B1ZD2GDHxrjA/CDosEcCiCTfRwUEa9Tjg+HF17UMXmos/ywCMDjlGySo0h0Na4Gzfqn X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0302MB3376 X-Proofpoint-ORIG-GUID: ATgmAinecZTS0cwAs60zwV-HfSzFi8Pc X-Proofpoint-GUID: ATgmAinecZTS0cwAs60zwV-HfSzFi8Pc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-15_10,2021-11-15_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 impostorscore=0 clxscore=1011 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111150076 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEJlcm5hcmQhDQoNCk9uIDE1LjExLjIxIDA1OjQ1LCBCZXJuYXJkIFpoYW8gd3JvdGU6DQo+ IEluIGZ1bmN0aW9uIHhlbl9kcm1fZnJvbnRfZ2VtX2ltcG9ydF9zZ190YWJsZSwgaWYgaW4gZXJy b3IgYnJhbmNoLA0KPiB0aGVyZSBtYXliZSBwb3RlbnRpYWwgbWVtbGVhayBpZiBub3QgY2FsbCBn ZW1fZnJlZV9wYWdlc19hcnJheS4NCj4NCj4gU2lnbmVkLW9mZi1ieTogQmVybmFyZCBaaGFvIDxi ZXJuYXJkQHZpdm8uY29tPg0KPiAtLS0NCj4gICBkcml2ZXJzL2dwdS9kcm0veGVuL3hlbl9kcm1f ZnJvbnRfZ2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