Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3553866pxy; Mon, 26 Apr 2021 04:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFtmjNDcXCScye6TLm1R7ugI9byVZM5RfLUCIdSd6QX5KPcns9353lTB44cPoaiC7LQvD/ X-Received: by 2002:a63:7118:: with SMTP id m24mr11079703pgc.316.1619437188332; Mon, 26 Apr 2021 04:39:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619437188; cv=pass; d=google.com; s=arc-20160816; b=DGC6BvNqHTYpukiwfq1uehJEN6FhpQnNzzQPqiQSeTw0uLtLRLIqxUxXVI8GIH7ao4 TCMiF844njPfeCencNcJJm3trWISWHH7wiKfCcg9G/XHG0rtiUBJPRFN1l6BeRjOSDz6 e6LPBnAlpiR6U+D567OXz1xbW2/iQp0aheI/tvVYhhhVlcOdtMVTqWsiUsK8/xmmhizr QzCO9/9o51aNMdPB8LnT2f4dnXyuEvpWO1q7eFrXGAEjOFFnSC6DlH74jym4NV7tDY0x 6QBP2tY1/AvMTwTZd9f+gTNj4rem9WhRGy17bIgMd+F0awusjN88QVLZgoBoQA2JTMLA hYEw== 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=5Qw4d1GnqZYm61pEtf3O/wwcmYKV+hlpKiAuIERvTv8=; b=tp1jmOviN+b9EtWksvU9qCXr8G6TmEbFWuC3177+oFgnfMGDtmUt4ErUc4poKXvkGy kNjI70mJ4/KGUsAeNRBfbhZi5x1/qnvNPoD0TOxijxsayamyD9jjBwe75KOrhdGLgLtn dPk5qVIfob0j64L/dQNkScXf7ox1K9cR9hBrAgnXVwqWbCWuk2qoY/dJjxt0igQfumHz 8OP2lI5p/93uD5/YxNRLkew+8n11qUIVi63VPBM74dgwJ7vySGjaSy4Ydo84a45baGjf xB7cYUlODhURDDiO3ElTsm4NjrSiQYnU1nGdkoxBSRbSapPEZ7x4YVtDgYk9b0AzXM6E ReCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=f6rpDfDS; 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 co12si5335581pjb.142.2021.04.26.04.39.35; Mon, 26 Apr 2021 04:39:48 -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=f6rpDfDS; 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 S231876AbhDZLjs (ORCPT + 99 others); Mon, 26 Apr 2021 07:39:48 -0400 Received: from mail-db8eur05on2082.outbound.protection.outlook.com ([40.107.20.82]:15211 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231806AbhDZLjr (ORCPT ); Mon, 26 Apr 2021 07:39:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lz3IozjVP1VrbTFnGU3Z8ZyFgFcdqW0YSH8FYVT47y7X1SU5iF3IbuWyhSaloPpaugTnqDv0zdsegVv3DhiVua6MLdsIBQc5EWXl3KXTwh/KpWcJh2gK/GJB0GC1alBoEgw+lz7+ZBNwgwlIa6/cTL3LAf/OaX6CvyY9k9NKK4wxht+o22k3DB2dgUCjj5TVuD8LiwygY9HO5R6pI5efLSqJaUULHPwszRdXxzXnE5fKwmzAca64dVruHVm3m7ePiRFutrRd134BDbQb4cSjzVX6jarLlJidqy/AtLYYKxKdnHj8tAh6tNNjy2NQS/iKCaa90Z/xvgUdmchg/dN5Lg== 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=5Qw4d1GnqZYm61pEtf3O/wwcmYKV+hlpKiAuIERvTv8=; b=kWy4ljIBKkzSWDjA6+PVJiGDSq2ZeDtHMnH+geURWxYe/fXQDWWj5adAfcPOarezgG85pQBCDu1Zf/HehNx1f5ZiseZhU0rtRNYz4ntcUNvlsJcGXPepIg83CPRkEB88GsffvfoD9NJKubW6d9AXVi5TpMXZf0PAB1GBKsr9tPGbdkVI/AOUUKIKlBegB3eaTZ/hzhAPSJO44ZLYP0ak7BWkVB9JLNELbYTn4fDm3cmVISaKM5L/tCQEXeZr9lBxbX4JRSAPwnozZE+RzT9QhOzEAqel88MJuFw53W4Q0HHE5BjFHA6Wa4x7Zo9h+4PhO8NBQ//T6psg2Rhd9uKhcg== 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=5Qw4d1GnqZYm61pEtf3O/wwcmYKV+hlpKiAuIERvTv8=; b=f6rpDfDSjLGLcrVdS+BfXEGMhuH//5NzOyH9Cxuf/wJDJeWfP4dcX8ld1IyCk+69kTq9+Lhhr9W7tLrZRoMQu3k86uPEEp8LZsYFQu3WDjdZT7ySn7OnG2wOc8hHLrFOc5wR81f4845IIskBBuAnIedpYyqRD6SIynnk8z/3kOU= Received: from AM0PR04MB4947.eurprd04.prod.outlook.com (2603:10a6:208:c8::16) by AM0PR04MB6339.eurprd04.prod.outlook.com (2603:10a6:208:178::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Mon, 26 Apr 2021 11:39:03 +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 11:39:03 +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+nPsqrGchAAgAA4RHA= Date: Mon, 26 Apr 2021 11:39:03 +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: 33b331c6-848d-466c-95f3-08d908a7e469 x-ms-traffictypediagnostic: AM0PR04MB6339: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XVamc5IuijzIOCPlUQxAv1XGDiIncU01ohPj+gziLRX67SKzKCXFA+OVt/jDvw/NgytKe6Om6I07mN7f49s6Gf8u7P+Gc7Q12ojpvknkgucn7UC7gpgvGWS4NQbpW3EaNjzFHl3ybL9PJetZZxOT5PJxH543fk5U05BMRKkOEQ6p1FaWnaJqtyWrTRs9+FU1uqcxLjoirbBfOzIub8H1bhtZB5K1NO8xPmzZSIa1URKwes2zEE/aZ359Fiya6Beuf58xRHEV5r1UIWNBJlfF4RRyCM72NfOV01ESwfly0VWqUqiQlZRdGrGZ2Ut6KqTHLEJELc6bsn/6Txv5Zr49kDwqkTSHNEfth4WliZF993uckAEevoWTtkM5+jcbtJUPn5seHjJqyosazPmZQapW/osxC3gjUU4HoXCMBsA7KhcgyDqURDA/DFz7KgKQuN9LrqIjb/zSKWzuQaUlKrUV7fkDwz0xIgdOsGQ9x4IOT4YlGJEZh/qmuWjKozIizh8I5GqH2P16QPxESpoFCQw/iFUIQMVTpzH2PAursDh8FhsV+8KddMeiw84H9Gv0XWO78R6oDHEvzShaSXnJmhmomWYGAsktBv8GhkP7pl+LlU4= 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)(346002)(376002)(366004)(396003)(136003)(39860400002)(8676002)(71200400001)(5660300002)(66476007)(2906002)(66556008)(66446008)(76116006)(86362001)(4326008)(478600001)(122000001)(38100700002)(26005)(52536014)(64756008)(66946007)(8936002)(44832011)(83380400001)(9686003)(7696005)(54906003)(53546011)(55016002)(316002)(33656002)(6916009)(6506007)(186003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?gb2312?B?RjgveUxHSkVVOVVjREdBaTl6S1JoZDdTTUxWa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: 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: 33b331c6-848d-466c-95f3-08d908a7e469 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 11:39:03.3022 (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: G0kD3rHoniYbqpQ5+FthptibX9Tv6MrlnpY6MdpOaLOkl1/yQUl8qtvqgBobCQF/jR6HyzGoUBhPO+d9cz0F7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6339 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgR3JlZywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBHcmVnIEtI IDxncmVna2hAbGludXhmb3VuZGF0aW9uLm9yZz4NCj4gU2VudDogMjAyMcTqNNTCMjbI1SAxNjow OQ0KPiBUbzogU2hlcnJ5IFN1biA8c2hlcnJ5LnN1bkBueHAuY29tPg0KPiBDYzogamlyaXNsYWJ5 QGtlcm5lbC5vcmc7IGxpbnV4LXNlcmlhbEB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LQ0KPiBrZXJu ZWxAdmdlci5rZXJuZWwub3JnOyBkbC1saW51eC1pbXggPGxpbnV4LWlteEBueHAuY29tPg0KPiBT dWJqZWN0OiBSZTogW1BBVENIIDIvMl0gdHR5OiBzZXJpYWw6IGZzbF9scHVhcnQ6IGZpeCB0aGUg cG90ZW50aWFsIGJ1ZyBvZg0KPiBkZXJlZmVyZW5jZSBudWxsIHJldHVybiB2YWx1ZQ0KPiANCj4g T24gTW9uLCB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