Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3605103pxy; Mon, 26 Apr 2021 05:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynan5ZOizv/KNyAhKNYtWUlLgmwoCOen8a265r7T7UwmwFdThVhMer0hrP1k8UFRl59rPE X-Received: by 2002:a62:8784:0:b029:259:1d11:f145 with SMTP id i126-20020a6287840000b02902591d11f145mr17615790pfe.79.1619441385376; Mon, 26 Apr 2021 05:49:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619441385; cv=pass; d=google.com; s=arc-20160816; b=LbGgdXZEl1YvjP5d3/gkq7DfFNCGWBPc+V46HInvxdwGJOCe1mkELgSKPzGe2h1z4w RH9PgdHuTvwciSJTZBA4b8bQHMq4D8C+04qv5prx3dFm8S3ALeK3Vtvg8OTTJSV9IiPR B95dqLB7Xb/yrfEbn8DiOMx2lTjFvpOjc0b7OLPNNwqY8SVEO2qK1voM9KCyrEGj1Kf+ aPAJ39UaUX/jR3SOzvuUzMgGm/bdttMEtiYWAsMOzVXBOHFhPxxzJes++snhMboehl4L sqcWXM5eStdKybFsWWJ46B4soUzz4h4kN4/IHaTG2jH1ESHqTuhgURUWdjsheiZJa3E2 lA+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=tS4FG+rf7r7Vcr3FeYz4g3eEbTZ9udWHWu8py/8wzhA=; b=koMdXLwU7zgzPTHMkyklmQjlzPjrAO88YwaPSnFZeONwd4xdi/R82kchrf7+4lV7TB dWEcBlu22FwASE9YGMbkXVafuhfSC1TZRNue52v0za/LeLDhyxhEpy4naHOfJjgYCI7F ykd+eEwb8Y7++wOyv96x0Bnnn5bFZTK2lSRq7oQJSrzz4KqURs0JPVvCZwKslyFi9xnn GAnfpScCTUxInlE/eo/tf5Cyj3Eo3f38N90He80pdcSuvO4KMPslj7g21GUYPkWOiEqT 8RqeHILJLgqbh25Ck3P140RRD1YnL8BBV4tiW2DszjPyphKrjsuNDnYLLTB3RyrVe405 UWig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RGdBkdlk; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g6si17274760pgg.244.2021.04.26.05.49.33; Mon, 26 Apr 2021 05:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RGdBkdlk; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233376AbhDZMtX (ORCPT + 99 others); Mon, 26 Apr 2021 08:49:23 -0400 Received: from mail-eopbgr00068.outbound.protection.outlook.com ([40.107.0.68]:38307 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233043AbhDZMtW (ORCPT ); Mon, 26 Apr 2021 08:49:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DtqANal40K2WHb1/VpwQLPaf/5h4CcToWeilGex85wxIjmVz+VI7cwIcHVNca2tu+7XgdXp2fssv96D7I6WwivDLHy3NU67FouWvc+LbGqbg3fpbK+hmUL8ByeXVC8cyZSQc2FvJaT1aOkAmsW3eKPAZFl4/bssdOxeB2zbIq5VyZDQ6q2KYf7m/CEj05ms2wds/VbpaUr2mwtcx237T6gZXDlKVp2slxRagbGJg1R8qCM2Im0+AzG1vzNXXR48pOTrmQnChJrLv9e6pmt85TX8GmTsOmAxIGMFK800QmbjUAHWTYjDKj2wl67x0Wd9Y9mMzrlDAdRQOLwBqfG9ugw== 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=tS4FG+rf7r7Vcr3FeYz4g3eEbTZ9udWHWu8py/8wzhA=; b=V6UoWeVDo9noQOCcsIlQUhE3lglms4z3XkpQcz/IIkZlgbX/QVLnrYuyCbSMpyNBaLxl8TQelotxfqHnQs1GDzgCU8/oFdhL+/BYhqgWK/K3LIiG3veeYP6ekCi5KMa8RiDDEo4yC1bDj8C7OEK7VM2/5pcIxD7bQml5OXEmt+X6agbBky0aiVo89XmkKOEgoxPLRsdu8gtcplK8+UKVxY3bIU8X20voxNFGO+CdVWlQbhFYkLusupCcG/E+gcZO0jtvrNlVx3w5uXdloMTT7u3HGKQLQy7tfXfaHiKolERL4h6ORUt6N2dsksiSyxAR3yjKn7vK/zQgtendaUkiKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=tS4FG+rf7r7Vcr3FeYz4g3eEbTZ9udWHWu8py/8wzhA=; b=RGdBkdlk9K1z9hUFsMkH8RuYMSmgKhqViQSRFt+H+8cCXwjFrXwC7v1id+bkzochxzaqIlmsYiSWfj4wx4HZgj6JaGXWWsBIgBEMIdzuRkisMZBBElNP2746cVt88i6qPLbOx8JtZZkWfgN6vTHq3aEsiqyRDq9rI75i3dXBie0= Received: from AM0PR04MB4947.eurprd04.prod.outlook.com (2603:10a6:208:c8::16) by AM8PR04MB7250.eurprd04.prod.outlook.com (2603:10a6:20b:1dc::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Mon, 26 Apr 2021 12:48:39 +0000 Received: from AM0PR04MB4947.eurprd04.prod.outlook.com ([fe80::c9b0:c412:80f0:4645]) by AM0PR04MB4947.eurprd04.prod.outlook.com ([fe80::c9b0:c412:80f0:4645%6]) with mapi id 15.20.4065.027; Mon, 26 Apr 2021 12:48:39 +0000 From: Sherry Sun To: Fabio Estevam CC: Greg KH , "jirislaby@kernel.org" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH 2/2] tty: serial: fsl_lpuart: fix the potential bug of dereference null return value Thread-Topic: [PATCH 2/2] tty: serial: fsl_lpuart: fix the potential bug of dereference null return value Thread-Index: AQHXOnDr8/FCGWBm7kWmZDaqq+nPsqrGchAAgAA4RHCAAAd+AIAAATSAgAAD44CAAAinwA== Date: Mon, 26 Apr 2021 12:48:38 +0000 Message-ID: References: <20210426074935.11131-1-sherry.sun@nxp.com> <20210426074935.11131-3-sherry.sun@nxp.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1bbe6d01-359a-4a34-4594-08d908b19d64 x-ms-traffictypediagnostic: AM8PR04MB7250: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EhoHMk8BXASJXycjmDck0fgV6u8WgSXRlHpIvqweSQ1no9IcgIkBPH4FXKUjdBGPxMfz4Iu2iDyOjoJdkEATyN+hC6LIXSg0stWh6YVLAPePGLBh1vlkY7EX0RFVhP6tKZlIeyov/oIUvs7ubeLpPD6gmvaTasjz+dZy6P7/1zja/O88mtvtefzjRVPiBZNepzGce+VCoyvY8pc/7M2Els32VWixEb190oxXTE0lTrS7ijdYnUV/2CPQ7UAc+z456EJA8p0Chxs5IZ6HMx+PpPbP3w1XHWAsRyWbOIQ5zjwWZMBMJItXOJ3nTCPEwq8cK0rC6shdYafHcJfqHleHdERnOOWS7UlQbMlKcKWyfpMuY9WEHwBf0b/Mlq8M79NrTqfthVSUDXrb1FXirEfxigCSgxp35uaD8UYeLeGfpNigBeRj3aUO2/DbZskRH9A9knpPo5ynz1fGGq2dZBPj6MkHDnPgoCFs+SH8JD7zxVSVseSvvQkU7yp7txWdHVzoVKOUV72CbzbiPDRjZhk8AKrbT+mJ/KW1/QYVxNw68ggm6TgSGowJN5uU72tHV/2rk9z00PfLGYwVp5xefQDyyHyitjab5ulo+Zx+aIQuaw8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB4947.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(9686003)(186003)(52536014)(6916009)(498600001)(7696005)(86362001)(44832011)(76116006)(55016002)(33656002)(66476007)(64756008)(5660300002)(66946007)(66446008)(66556008)(71200400001)(122000001)(4744005)(8676002)(2906002)(26005)(54906003)(4326008)(6506007)(38100700002)(8936002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?bmp2QUFhRmRBUGpCZ3F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Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4947.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bbe6d01-359a-4a34-4594-08d908b19d64 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 12:48:38.8596 (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: EZiyjGKCIOaemlfKGWr5IyxK9cjv65beU0wtuOiEKzkLlV2TuQG1A809qyakjLDaTVUJnBPsVYgXO/+KX+Mqng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7250 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRmFiaW8sDQoNCj4gDQo+ID4gVGhhbmtzIGZvciB5b3VyIHJlcGx5Lg0KPiA+IEkgZ3Vlc3Mg eW91IG1lYW4gdGhlIG9mX21hdGNoX3RhYmxlIHdpbGwgbm90IGJlIE5VTEwgc2luY2UgaXQgY29u dGFpbnMNCj4gY29tcGF0aWJsZSwgcmlnaHQ/DQo+ID4gQnV0IGZvciB0aGUgbHB1YXJ0IGRhdGEg LS0gc3RydWN0IGxwdWFydF9zb2NfZGF0YSwgd29u4oCZdCBpdCBtZWV0IHRoZSBOVUxMDQo+IGNh c2U/IHN1Y2ggYXMgeyAuY29tcGF0aWJsZSA9ICJmc2wsaW14OHF4cC1scHVhcnQiLCAgfS4NCj4g PiBIZXJlIG9mX2RldmljZV9pZCB3b27igJl0IGJlIE5VTEwsIGJ1dCBscHVhcnRfc29jX2RhdGEg SXMgTlVMTC4NCj4gDQo+IEluIGxpbnV4LW5leHQgd2UgaGF2ZToNCj4gDQo+IHN0YXRpYyBjb25z dCBzdHJ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