Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3604216pxy; Mon, 26 Apr 2021 05:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM/gzzrl96maTL2yvMpDzjdaxue0zwnO7CEGyvcJQuogb10NpDuAyOzIcg72MKUutttxx6 X-Received: by 2002:a63:df09:: with SMTP id u9mr16121408pgg.112.1619441309060; Mon, 26 Apr 2021 05:48:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619441309; cv=pass; d=google.com; s=arc-20160816; b=eBSXdDzazkqH1o4OnwJgKO7WcTtAe85rFwQWhulRiC/32xSczRT4KfqeWdoi5Rl6+x IYu7w40NMjSqQuyWcQFIyr0P2Nr2mgluqm2OKb6C1QP4Ui4k8sIZhU7kBUDk7ZV6uyZd WPA2mZxyp1/HbNOfCBLh5JvCR1Nnvrb4yx2YKv6mnbKh1TtoydwXOynDlsGlJG37lpUy H3keFG5FU+agDH5QRm9lUu9otAmeZYhC9YRNeiH8mAWaz/Nt10VBzuW1kFwC2QvF9BCR dzeQYoFbC+6qD5nv38dZizRUspGHhwYPQfmIQh0aS44+JVVSm16I1R+OqnSSsff42PTj rvUQ== 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=zFZ+MaQx8oTriylX7eWapTTY70DY0d/N+QLL7nK8Iog=; b=i9a6ZXMNXVBnJB206LyzyEXtTFb+/ddRlkTfEYgWX3MxR3fsqD2FiM3fhIIo4i7zY0 Q391H80PVWemwLMRJVl3NdnKVdt/qRFOWoBZtZ9G5X6QmqfB5InoPEJWStRx3OBiFg2T RzsEJdKRPt+OpTKwLgxbSUuBTz56qW+1X1zyGPoNksIDzYm204womQTE9I7cZ31PWGG8 4P8q69YOGXaB6Xaws/d/rJCgxdVoPur87aiFFGjG0W9ystqpuMbeM08RRgIuHY7bdv0S IqYt3qUp7K1oyWzOY+BP8bpvpvnjnrd+Fn9lvGeklHr/bFW/S5OIuVu2cCzwBkSvGyNc SfMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Y0tbUgcR; 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 o3si5754243pjt.83.2021.04.26.05.48.16; Mon, 26 Apr 2021 05:48:29 -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=Y0tbUgcR; 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 S233528AbhDZMrn (ORCPT + 99 others); Mon, 26 Apr 2021 08:47:43 -0400 Received: from mail-eopbgr10086.outbound.protection.outlook.com ([40.107.1.86]:57166 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233317AbhDZMrb (ORCPT ); Mon, 26 Apr 2021 08:47:31 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CcsUOHjkamgAh2DSukVPCDqCfjnaN/qfb0QJRFneyRYrqvZzUDqjiKgcBXmlLkWb5oYXIqrYPzdpdjbTyTTXCllrFjT5ZYQ7dhOZ8qNd23qIGLHR6feEAJfIOpe4iet1KGNPY1gfdGYYxPtEyqcrDi9eTrWMvHxfAsD941TiqBQLOsqgWn/LfhODQdIB2og44SHGZA2uFjrOzqPZv6fx5cD6LVLkKg6i3YW/r3PNUovm7PqFWkhsxC+y3kvk2SgpKg8UBoob2E0Cw4QyeOYUKDiwcVpMZDCW/cj2D82mYUIVrJ7FRKHdPU+aewOO3StjAgi9CuSw7ZG0Y6KK5bkHLg== 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=zFZ+MaQx8oTriylX7eWapTTY70DY0d/N+QLL7nK8Iog=; b=d1/OKA2WyGh1AcgsHGQdrJdwbOkjmj9H5Q2ffXUF/R/4PJlLwFWI2JpK4vNflyY6f+N3QtTvFTmuFVyoEMOUtx3O8crac3MJq0u2HXn/2+Fp+25tf4JHJSxXrSi15PFT3EyD83KJ/ktuCJxfHHbTDxJXbMxvW+IzM5syJSyFvlnW6oo2l4CvbRK9Sg1J6L6W/dnqh2EGUpMEQv8xMgEvgcetgiV0YYURYtz4DVGm6E4WV7JdsgkmlmPxebC2ayjWIsdQWzXqBvTQ2nZhSghGU2X6Jp6859gMFcGvJaCJld62DhzBqoLoMVsvOu9cA6KEUdhNwVcLGWWGX36CxPpYFQ== 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=zFZ+MaQx8oTriylX7eWapTTY70DY0d/N+QLL7nK8Iog=; b=Y0tbUgcRnHLX6E63mWRxZnEWFl1YxqRkmMOG1Is/Tb26wrPBLSHbehDwKhH6qZh99z5d9qAhqL8FTrhVBM5EPV7amXg0CSvwufc1YXc2TfkYZMpYYTAFXeJROKGDmPPTlm7OpX6DW6rYCUJ3UI/HvEih8xmdS/b3vEKZaLfshjA= Received: from AM0PR04MB4947.eurprd04.prod.outlook.com (2603:10a6:208:c8::16) by AM8PR04MB7426.eurprd04.prod.outlook.com (2603:10a6:20b:1d7::10) 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:46:47 +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:46:47 +0000 From: Sherry Sun To: Greg KH CC: "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+nPsqrGchAAgAA4RHCAAA52AIAAAlGg Date: Mon, 26 Apr 2021 12:46:47 +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: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; 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: 0e07e06b-11d6-422e-c105-08d908b15aa1 x-ms-traffictypediagnostic: AM8PR04MB7426: 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: 0D8Pnj7yrQFYoOW4yWc4nYQAci8mlw+6+vs/gnlALERNz5purL6Mf+XLRtgc86dJMr2/pNUCPKZb5WPll/5XFjOXDk+1bTEcseIoWo7O574RZ55iAtbJ+sC89CJwXvJG8FdViEFzeE3Q6sQ7K+HOljZ2eLngGQBvxRD3J8R6QauesG0IlG1XHSxhVjmlnS4FLfNitPBpVSNzi7amaGIsLGYtRcr1enb6dkqUe+c3cW4nOs8Pw9h/G3t9+XogEddowJPYmxyAUUYKrD1sAy6kAyXYdSZBn5Uvci/Di6AiW9d1K3eJMSPPKZYKsTZ4btAubvwDD6qMzWCM/MUYc84tOWEH3H4/mM7CgVd0dzta1NzlVz0Z3TkSr4L5JOd5jVsz/pfB06uB8QNyREra1a9eMQ6MuDYPkFWChLVCgAhsVWDATqaLzMylweAh/kS6DmtZw28BFFa+YC6WuHhbhFB9b1whQpYCciBtOhvGg/twkq8dkBREhbxwAJVu3rhMJSTlNadiUq3hui9IW4gTMwf+RMaq2s3wAdGH1nib9pkY9fKDuOT+Q+6HUcGGOAkMdv2HzSdwWy/yHUWhXuhyL6hIrJn2Lt/pLbFbDOsUvMFXKsU= 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)(26005)(76116006)(498600001)(33656002)(5660300002)(186003)(54906003)(55016002)(8936002)(9686003)(83380400001)(122000001)(86362001)(7696005)(64756008)(66946007)(66446008)(66556008)(66476007)(71200400001)(38100700002)(2906002)(6506007)(6916009)(4326008)(52536014)(44832011)(53546011)(8676002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?ZkU4bVdNM0t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er-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: 0e07e06b-11d6-422e-c105-08d908b15aa1 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 12:46:47.1680 (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: zHGk94gBOU2rUFmNMsoroD8QpX1M0jmRUjuzNTVuJFGPSCIlXA4emny5sfdnwwTulC608w/NLiHqth8IWZIR6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7426 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpIaSBHcmVnLA0KDQo+ID4gSGkgR3JlZywNCj4gPg0KPiA+ID4gLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0NCj4gPiA+IEZyb206IEdyZWcgS0ggPGdyZWdraEBsaW51eGZvdW5kYXRpb24ub3Jn Pg0KPiA+ID4gU2VudDogMjAyMeW5tDTmnIgyNuaXpSAxNjowOQ0KPiA+ID4gVG86IFNoZXJyeSBT dW4gPHNoZXJyeS5zdW5AbnhwLmNvbT4NCj4gPiA+IENjOiBqaXJpc2xhYnlAa2VybmVsLm9yZzsg bGludXgtc2VyaWFsQHZnZXIua2VybmVsLm9yZzsgbGludXgtDQo+ID4gPiBrZXJuZWxAdmdlci5r ZXJuZWwub3JnOyBkbC1saW51eC1pbXggPGxpbnV4LWlteEBueHAuY29tPg0KPiA+ID4gU3ViamVj dDogUmU6IFtQQVRDSCAyLzJdIHR0eTogc2VyaWFsOiBmc2xfbHB1YXJ0OiBmaXggdGhlIHBvdGVu dGlhbA0KPiA+ID4gY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