Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5355422ybi; Wed, 12 Jun 2019 00:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5VY8zY5N4jFR4CEQV5RMUlvbehJdvznufLYGnkmnMykLp0mWVdOHTvgKkPdzyYTFjwS7i X-Received: by 2002:a17:90a:a601:: with SMTP id c1mr30293189pjq.24.1560325826626; Wed, 12 Jun 2019 00:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560325826; cv=none; d=google.com; s=arc-20160816; b=yrYTruMo4zPFq9S52ufa9rCCv3njT5zDGWPr4VXiyDye7F14Xjaoz2fNRTT0K0W/Qe F65aShz1dmLT5H+kleK5fLWUbjntrm3OoFEnB+CfMQHm/zusaI4577U9wvHD86V/lTo0 ShUteX6vxwFWHiPCy6+iD78tMOJEx1Fh0Bkb67z8CIOicdq/AnxyW7PBC4TMtiyJ5XlX s2kihGh16ttP2z+0AYko+FBu8L9Km8oSamCbyLTAonxnBrQVWX82RAv6iuQiI4V2nCJG /C2LGcqOG4nYzS2zV8ryzDVebpQ2S0mV+OJ4wrZ/eCfV4QnfqpHTVmluaiCC5nagbEBA UdKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=080bmkbMkOSS8t2VzyYcZlQUy78lnN3zRz2xSOgXKI8=; b=QUxi7iKrqdSV6kVg0Anc8gQhZYNgpUUjYLBCgMjhiUZnTz8bZfWSP+H74FOJ8r6ZDi L/rq2PWvoWOqiZEy03+gs6u+4GpEbBUPf7thDRCliAAdSNTISw5KWFgoTkjofE1SbPpf bwcDnkI8JVRltBrm/6XpgQ1fhFfNHm4mpk+TDe5MZJIfO6ineN6uBD70LASZZ7c9FomZ nWaZK7zTGiSEQyZ81iSZMuCQq/EsYWpmkFVtrLqgqsXWVHFRegzbj1iVz5H3q/KyoYzj 8ARISbQwaa6B3yJCQDHlvMUfXgSco2HIROvO6rqsMXW4Q5DXqRv8pormml5cEYCjwL+6 +JoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jSfRhIZ+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j36si15432812plb.77.2019.06.12.00.50.07; Wed, 12 Jun 2019 00:50:26 -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=@nxp.com header.s=selector2 header.b=jSfRhIZ+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436609AbfFLDxN (ORCPT + 99 others); Tue, 11 Jun 2019 23:53:13 -0400 Received: from mail-eopbgr140058.outbound.protection.outlook.com ([40.107.14.58]:61414 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2407169AbfFLDxN (ORCPT ); Tue, 11 Jun 2019 23:53:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=080bmkbMkOSS8t2VzyYcZlQUy78lnN3zRz2xSOgXKI8=; b=jSfRhIZ+ERsokX1MYmjp6Rcu2LC5VNVXMo5itWgsvL+dmTyu+oiyBXend29blUthigsjivCnxoTFITdjihcbZpH0KotSH7yBMaXHydiGHiiNHaFex4gHynfDOoMiV0CVhsdU96MAsKXoGt0Axr+GSGXTVwu/LLA2BfVdOYQvWSs= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.92.158) by AM0PR04MB5188.eurprd04.prod.outlook.com (20.177.42.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12; Wed, 12 Jun 2019 03:53:08 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::11e1:3bb9:156b:a3e4]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::11e1:3bb9:156b:a3e4%3]) with mapi id 15.20.1965.017; Wed, 12 Jun 2019 03:53:08 +0000 From: Aisheng Dong To: Anson Huang , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Leonard Crestez , "viresh.kumar@linaro.org" , Abel Vesa , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: RE: [PATCH 1/2] soc: imx8: Fix potential kernel dump in error path Thread-Topic: [PATCH 1/2] soc: imx8: Fix potential kernel dump in error path Thread-Index: AQHVIM/CBiCldgc28kaHaTOtZzLmMaaXYqxw Date: Wed, 12 Jun 2019 03:53:08 +0000 Message-ID: References: <20190612033620.3556-1-Anson.Huang@nxp.com> In-Reply-To: <20190612033620.3556-1-Anson.Huang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c568771d-ee2a-4046-dc51-08d6eee97b6b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB5188; x-ms-traffictypediagnostic: AM0PR04MB5188: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:207; x-forefront-prvs: 0066D63CE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(39860400002)(346002)(366004)(189003)(199004)(2906002)(7736002)(71190400001)(186003)(71200400001)(25786009)(53936002)(229853002)(110136005)(6436002)(74316002)(44832011)(3846002)(6116002)(4326008)(316002)(8936002)(476003)(52536014)(446003)(11346002)(81166006)(2201001)(256004)(486006)(81156014)(6246003)(99286004)(68736007)(7696005)(86362001)(305945005)(2501003)(66066001)(76176011)(26005)(8676002)(33656002)(45080400002)(6506007)(14454004)(478600001)(9686003)(5660300002)(55016002)(76116006)(66446008)(64756008)(66556008)(66476007)(66946007)(73956011)(102836004)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5188;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gs23x2F+FyAtg1dFQfIrBCLq5NC362uFruLVNhVBMIZqjTgBW/A/wk9c4gnq93Oyl9gp7e6dIaX2Ksj9opY1LABIQ631RnJ2vZ4kEn7G/27FYo5tGMlPmDxzZ6tZGGpNASop42cHNtYi1bradEhGIJ3EWONE0vloIP9AE+5KixMk1gXIZ5BiOeO3Xbh2H2m47vfBjCWTaR19iJcTi97ev8zldMrM73uyVycnR9QI2wtt/68MIbJy9k+xBR02PLwwPNzhMJruPlMr+xG8EPvalPukjQLiM/JdMjeJj7XpH0GcceKiH5L1z2MwHBBeWQD86mB+ifI1gnx8bkuuLaZTyRoYEiZsiSyOGw/au3XeOGlctLCwJcPJKfWTr+ztC27P/nZbxIfTU4BLu5pM+fD/r85BU/XquvWhXZpQ7mt+0iA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c568771d-ee2a-4046-dc51-08d6eee97b6b X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2019 03:53:08.3891 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aisheng.dong@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5188 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBBbnNvbi5IdWFuZ0BueHAuY29tIFttYWlsdG86QW5zb24uSHVhbmdAbnhwLmNvbV0N Cj4gU2VudDogV2VkbmVzZGF5LCBKdW5lIDEyLCAyMDE5IDExOjM2IEFNDQo+ID4gDQo+IFdoZW4g U29DJ3MgcmV2aXNpb24gdmFsdWUgaXMgMCwgU29DIGRyaXZlciB3aWxsIHByaW50IG91dCAidW5r bm93biIgaW4gc3lzZnMncw0KPiByZXZpc2lvbiBub2RlLCB0aGlzICJ1bmtub3duIiBpcyBhIHN0 YXRpYyBzdHJpbmcgd2hpY2ggY2FuIE5PVCBiZSBmcmVlZCwgdGhpcw0KPiB3aWxsIGNhdXNlZCBi ZWxvdyBrZXJuZWwgZHVtcCBpbiBsYXRlciBlcnJvciBwYXRoIHdoaWNoIGNhbGxzIGtmcmVlOg0K PiANCj4ga2VybmVsIEJVRyBhdCBtbS9zbHViLmM6Mzk0MiENCj4gSW50ZXJuYWwgZXJyb3I6IE9v cHMgLSBCVUc6IDAgWyMxXSBQUkVFTVBUIF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