Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3576968pxy; Mon, 26 Apr 2021 05:10:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoPwm6RcA8+mEExmCmlMnIlZhpUtDRJ9hJUeNhjUUSi/JSeGkgKHcieR4jaAFRxuZc2fPn X-Received: by 2002:a62:1a4a:0:b029:25f:3159:78ea with SMTP id a71-20020a621a4a0000b029025f315978eamr17507829pfa.41.1619439050285; Mon, 26 Apr 2021 05:10:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619439050; cv=pass; d=google.com; s=arc-20160816; b=XmQY2a+B4PlkapEMXkKjloV/COj0hrO7vWcgIYMiMlccH9iNuKnaJGT12ZCFmtIt1w Ky89QB/HpUkbC8I9gswhiq47X8phOS7yHypSftHfq1bGhPLwPRycvPVet/XIdpIVTMxX 4oiCbr0vZ2NorrhAwH2gLp+atx6UBWTEBMOCcDR8V1DdPhXHs700nMF3vbfxoHEZ00Ip jw35ROSQSHHFyXbABAV59E3JQrAq2bcbQ924ZFb9sJ8hrq1zVT3eOoCrKrw7+zbZD5fv n08ALLFJ1JNGnqUmH8Ir4bgveof0oeb02ylnGOTvOAFgM6AIYXyiRteUJhH6CKcnZiN8 at6Q== 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=0Iac8AxTpTLHwSX9KoA+j8RgY8sVme8l6KNgkBrZQJg=; b=V3aja35QbA3+hAkWBVKIUfK9KMG/pwvZnB7hzB5IwEGmruMGMhyTvaZjOh50tnQhsT 9rMZxePUNnYccMJ2wLKHZWjumQSYTH4bn+81YlALBlgwRilWlZYplQtd6TuRQZcxnjxO 20raJBfRaKgVK5FvPZsCWH284SDYFEl++G8FA+DJ3K/RqvOU5wZDHLvXEuM/0BS2PeBo CeALFBMWxAZobG/KTEH7dsgCf8aYhaXjvlkDx+qoanDfUe9lAF6NP7uCv7lXTrGZV7yh XgNjMbpAH6ir3yfLeFH4tUH5SqejdjITFF6251skpDNceDqQZDLljbKNXND7O5whzlVf f7vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=sFmOJJt+; 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 v19si17979301ple.193.2021.04.26.05.10.36; Mon, 26 Apr 2021 05:10:50 -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=sFmOJJt+; 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 S232953AbhDZMKb (ORCPT + 99 others); Mon, 26 Apr 2021 08:10:31 -0400 Received: from mail-eopbgr130048.outbound.protection.outlook.com ([40.107.13.48]:30914 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231550AbhDZMKa (ORCPT ); Mon, 26 Apr 2021 08:10:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TRr9pX7fNqs/wJdTjxl76v+uAIwW2vuUHX1t2Usrnk2nS5Ncw7V1F2xWUEe6Zn8Dm8uVE6prwB5vm+dpVT8FVFzPuH8ZS85aVoNAmXTzXwBQ/ZowxqywgFBAE7tdnKaIttMytZEeeLcPorvSse+11rKarqcuBwJJWJJIqZs694Vvk0YcWyweFEvJm8CgJnXz5U6NGJydmCP1gZJcV3vUZuwV8a9nCb2QibEeRYLTCTOkoNEaBuPxWzdQogDIh9SJSdoIRXCKQefghBCqDxpPgkujQ4AkJI9LTKF77R2ABkqxgbeKJEBSHPDpuEdT8EEPqmYgZLJGOiFEAspFPOSR2w== 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=0Iac8AxTpTLHwSX9KoA+j8RgY8sVme8l6KNgkBrZQJg=; b=KsLT5Eh2pZ6etCZnfkQzWF9w0Uj862+703S8aXeI4iA69/YbouD2rs0E90KAlSW3TWnPZjA9uiVNTTLfuG+29/oVaWeUWiU70EzBKeqphLLrt6yiUase0XBHgPbx+h2T5YuUNcI02jV93FfL1l1HpuywMoydJia0YaCZfdhJiU+voltpITV67y3WzR1SYLmIoxZf44LnIMO2QZbBNszF3D4T8kEZbz+22fFfVoX+ejAYByqOz74bL8oMHhQhIfhtH4hTtH1mzURjw4wPgqXKZ+YV9BAE/VtRSC10lf94p1hJcDUK+SB7zT4NtTMsp1QmP+1dVLBJgvY8U7FZDeG9nQ== 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=0Iac8AxTpTLHwSX9KoA+j8RgY8sVme8l6KNgkBrZQJg=; b=sFmOJJt++VGyKZXlPuGuSRI7AD1yJwFJNI9svoAd4R4kj/upGSNqUX+AQHvuyqsYHUkCor+EI7m+0+LJFmm5SmpFpbUaPZDu2A1XQQo1iZ4r0o8X38JFCZw2FHADKd9y173ovpNqLsjlaGqh0N58J4nma+6CMmyyd3sxZwl8ovk= Received: from AM0PR04MB4947.eurprd04.prod.outlook.com (2603:10a6:208:c8::16) by AM8PR04MB7441.eurprd04.prod.outlook.com (2603:10a6:20b:1c4::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Mon, 26 Apr 2021 12:09:46 +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:09:46 +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+AIAAATSA Date: Mon, 26 Apr 2021 12:09:46 +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: 2673ded3-a753-4ced-38ba-08d908ac2eea x-ms-traffictypediagnostic: AM8PR04MB7441: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vDI3yj7hS+LWEd1GDmV4WXQPb+i31k1SX8dYq4Q7gdqUzulECp5G6NT1scrdjJMBTvBuqtPKazSl9BCVavDIBWkjk2Xe+T60xswyoIe0KQUjO1yZT/Al6nssRKFuHUoUtMtT1Ffqwq7EHuRYTCJSZzY+blQS7N2jn9h6Zm5hOqIs13OnHjZ7wFMMnwjFHvWnFvUqSsghfiwz2AIJm1MahVF6vsP2f+QkDE9XUDaHiXaYDMo6ozX3SMgsOPf7q8YjI8bTssX0C99izNfFFd036ImsXFRZ764/7CS9u1vWn0YmegbuI43y/MV6aqRdaJoXUw/GqqECxGdcdSc0GzKYol1c2RS7vKovUD7WGSna7s6vFQqVHJyN0apZHL1hMKYntTF+za9GZ4zmgyxI3/EKa749592qpynICrF1g5kU9bxkhCMpka2rd4R6J6p63r0wBrPGVYyZRE9ntRSh3UCgdKS9o+Fy+kwa7C+VcQrts/jNmEtnXpGeWcmKZZXxZza2S+LUHvg5sdX+kigRxl1bYWef6xqtPtG3+O0CokJzhGkIB/siBjm67R3xWoPy7nKgAbrM12Y41svUbYdpEsPB74044oBNCmwDfhSmZQcBeUU= 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)(66476007)(66556008)(64756008)(66446008)(8676002)(8936002)(66946007)(71200400001)(76116006)(38100700002)(6916009)(6506007)(54906003)(52536014)(122000001)(4744005)(7696005)(498600001)(186003)(33656002)(2906002)(9686003)(55016002)(5660300002)(53546011)(26005)(86362001)(44832011)(4326008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?WDJMVmdyS3ZISm0rcGkv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8" Content-Transfer-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: 2673ded3-a753-4ced-38ba-08d908ac2eea X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 12:09:46.3485 (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: Jh8k/FC424NMl/MUafOeqzRG2FtKGnodZwUWFmD1Pt2P7ahPXbzvezMmdia+gAqO1IblFQX+4rbCNgHwby/IVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7441 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRmFiaW8sDQoNCj4gSGkgU2hlcnJ5LA0KPiANCj4gT24gTW9uLCBBcHIgMjYsIDIwMjEgYXQg ODozOSBBTSBTaGVycnkgU3VuIDxzaGVycnkuc3VuQG54cC5jb20+IHdyb3RlOg0KPiANCj4gPiA+ ID4gKyAgIGlmICghc2RhdGEpDQo+ID4gPiA+ICsgICAgICAgICAgIHJldHVybiAtRU5PREVWOw0K PiA+ID4NCj4gPiA+IEhvdyBjYW4gc2RhdGEgYmUgTlVMTD8NCj4gPg0KPiA+IElzIGl0IHBvc3Np YmxlIHRoYXQgYSBjYXNlIGZvcmdvdCB0byBzZXQgc2RhdGE/IFRoZW4gdGhlIHZhbHVlIHdpbGwg YmUgTlVMTCwNCj4gc3VjaCBhcyB7IC5jb21wYXRpYmxlID0gImZzbCxpbXg4cXhwLWxwdWFydCIs ICB9Lg0KPiA+IFNvIEkgYWRkZWQgdGhlIHBhdGNoIHRvIGF2b2lkIHRoZSBrZXJuZWwgY3Jhc2gg d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