Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1908172rwl; Thu, 30 Mar 2023 03:17:15 -0700 (PDT) X-Google-Smtp-Source: AKy350a+x2Vuejib9/LPCc1S5xFSsTo6qSrLSgKJDCegLBe6w/Qt9GJTUhbJjhwIIFWxCKfDR9qK X-Received: by 2002:a05:6a00:2d0b:b0:62d:b0ab:a05d with SMTP id fa11-20020a056a002d0b00b0062db0aba05dmr1796171pfb.0.1680171435126; Thu, 30 Mar 2023 03:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680171435; cv=pass; d=google.com; s=arc-20160816; b=fHb59/zAFaC6DRoDy/5Uo5ceJJZUmYhsf20xYmlxTj9QCUAJGtFRErRxbcU7pq+Awc qUJpwFxvCDPxV9bLa+nNsvjAm51EwftPZ5pW+Zc30ehX5lCg67qfjXeaZQ7KNserKknu b4ouJ9Spz135Ls1pfjFHVuTvj7PGIufr+QJiJqRspWO/rymIfZvE/+gAU/LH+CBRxcCj UN49BnuMWf9HRula0uk536XQFk99m1f0THBIIZUa6XV6Q6dyfrEh0GmDIJ3df/PINABu ZVTi0SuMMSqKOTXnnGZ/TNQ3rrk2V+eOMRrgdKB1WTF5Ug4z0RkRP9o1LbJLTl4/54d2 cBUA== 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=HiwQ6P0LbvPPsnUkMUzEx3vgciy3yYOsebCKfh2Y1Rs=; b=a6Jd9KkhjhRDOj14KrBYO4zAq0H4880RYeyLKhPNdeJPcB2kieF4X38Z4I3Qg4ZzS9 hQB3uKSPzQ2lgV2Nu+8dOPEPeALQ77NthBRgddutjjsNH231k1vVChZQ8f2LbW7uSA4X btNYM/wc86G+N3dah/JVBA/bD3cejJiUdZrK3QyM6X2Qxry4YtBwJHBqpNHIrCUCgydp cs9fZkXzlLTu78e11vJd+4v3kndX0GpAlHYjUNXCXU2f0U5kp9JkiPC/BKdHQTVH6wmf VlRtvtxH6Q0ycU59dhjgtdppwM8w5mKFD5vDpNyxAPAwnjeiRv2Jcwu/f1wBjTfNavfY Iv0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=OKPCpFLl; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020aa794b5000000b006262531b3e2si32105137pfl.361.2023.03.30.03.17.02; Thu, 30 Mar 2023 03:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=OKPCpFLl; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbjC3KJM (ORCPT + 99 others); Thu, 30 Mar 2023 06:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjC3KJK (ORCPT ); Thu, 30 Mar 2023 06:09:10 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF5906E93; Thu, 30 Mar 2023 03:09:09 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32U6f0O8005361; Thu, 30 Mar 2023 03:09:02 -0700 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2172.outbound.protection.outlook.com [104.47.57.172]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3pmhc4d0xg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 03:09:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nbIJMxS98rk/YSwbZrsHRoataEcjEZHe2G5aJOKq5fJ8AJa+8EaiAa6iWKQglZJurytB4maqkI4HE9wErrWPGPTsnPnpnym0FSa4HJHtUVSNKiAbdl1eMikvrj8l977qmpRX5QGmnNGUF2DpB7mbitpedVC6TYm7cVgrs9d4MltYtO2wdlulvtHk4pENiM1KU6kQVCJXd5R6juMWsbez9H+L6M/WvUYCKLll+OEYYyXeUS2bBF7cCyvEnTxSn6X0r5eC+QwkONzjcUvh8EVJAJCUSpJRMtAln3aaJYKscNNo4G9kS2qd60S2JoHRRcwAilqoot+qONOZ8s7wn2q84w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HiwQ6P0LbvPPsnUkMUzEx3vgciy3yYOsebCKfh2Y1Rs=; b=PJFXjCGqFUTA1aQ2k9JNNF5EmIkbTZUFFPMWHhNzDk2QP4vYxWATd5nCPHt6u4cW1z09nTAnCRIRO9RRPNj0qqM4rpUzUiyaPhYrQI00+d1sA+hfxD56FtzslEAXvwpsPFlY0w74VCEWS7NFzaMwUftunERbNN53RzbjIoJfy6WIepGJnHhvOZspDEaNdpn02fv/O4ErZCf/HZjEhBUIg2exLDMaMSFX8kSfFCyzrjzsS73b3iAhXQZjtAowlG1CvqhBMZjsFGVZN7Iz24SlvEjO5LvvbekYopDr+F+PerRk4auc8zY5GX3nodMsfEnG35ZI/+v+CPhB5oGtJ4TRVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HiwQ6P0LbvPPsnUkMUzEx3vgciy3yYOsebCKfh2Y1Rs=; b=OKPCpFLlBKyGdUr/wzh60AJNdCuiwE3pTGfx9ntWLkYyq+n/4CI9CeX/2iY34Vz2vNVdcuDqpOSy5BPo61xRnYcxmwxtHiGN0EesfW1N8TtiKMQgUoO5Y4MpUy6hwIvqJh36ePFRvZ+9tzKYs0AIDmg1LvmpmoQ/+f7MeEMmYrY= Received: from BY3PR18MB4707.namprd18.prod.outlook.com (2603:10b6:a03:3ca::23) by SN7PR18MB3919.namprd18.prod.outlook.com (2603:10b6:806:f5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.20; Thu, 30 Mar 2023 10:08:59 +0000 Received: from BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::bfe5:6d08:3a10:6251]) by BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::bfe5:6d08:3a10:6251%3]) with mapi id 15.20.6222.035; Thu, 30 Mar 2023 10:08:59 +0000 From: Sai Krishna Gajula To: Leon Romanovsky CC: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , "richardcochran@gmail.com" , Hariprasad Kelam Subject: RE: [EXT] Re: [net PATCH 3/7] octeontx2-af: Add validation for lmac type Thread-Topic: [EXT] Re: [net PATCH 3/7] octeontx2-af: Add validation for lmac type Thread-Index: AQHZYmDeXzOo7CyzoU608CFuRZt47a8S2i4AgAA9ijA= Date: Thu, 30 Mar 2023 10:08:59 +0000 Message-ID: References: <20230329170619.183064-1-saikrishnag@marvell.com> <20230329170619.183064-4-saikrishnag@marvell.com> <20230330061840.GM831478@unreal> In-Reply-To: <20230330061840.GM831478@unreal> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2Fpa3Jpc2hu?= =?us-ascii?Q?YWdcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy1lMGRlM2RjYi1jZWUyLTExZWQtYWQxYy0x?= =?us-ascii?Q?Y2MxMGM0MGQ5ZTRcYW1lLXRlc3RcZTBkZTNkY2MtY2VlMi0xMWVkLWFkMWMt?= =?us-ascii?Q?MWNjMTBjNDBkOWU0Ym9keS50eHQiIHN6PSIzNDg3IiB0PSIxMzMyNDY0NDUz?= =?us-ascii?Q?NjA0OTY4MTUiIGg9IkRoZ09tL1gwbGdBSW0ySTVUazZsTGdHOVRpTT0iIGlk?= =?us-ascii?Q?PSIiIGJsPSIwIiBibz0iMSIgY2k9ImNBQUFBRVJIVTFSU1JVRk5DZ1VBQUhZ?= =?us-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xBSE1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkQUJsQUhJQWJRQnBBRzRBZFFCekFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4707:EE_|SN7PR18MB3919:EE_ x-ms-office365-filtering-correlation-id: 2dbf4141-c78c-4fe8-7362-08db3106c7c6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: O/3tcki14kBPv2pI+MkPm9efP7/ScKh/PTJtFqWxPK/uakNbQOZUwVKzY1zK5HeakyRYYkZJachrn2Yz3AWgiVzrkFQfFAg7DNogFgPTPer7bh/6rFwAkKy0aL5n/5+i3WHLv6F/xYwgL6tPlc4iuziGyegVs4FYgHVom5WeeGOYumNyyjDnV9AewbAGVYarHX6I0OWJFjxr5ifHZGpZ2nKOF8OGMZs/EAD9M2X6bUaMdh8os2pv3EnEMpwlfSbtt5h6hzCGDo/Z2HvLINNjg8zxMqL+qidGMTN+F7emMVGmStZh0MiSn9C95pou7RhgrlBcdHm2BP9fhEn4Ge1ZYB3QIkhklLjhYBgwFfQsvULFGuIXqPBEW7dKn48/F9xmo2CyFjVamF8JDPsZrIzsXDbkExRJDc7+UWhI1+uRttjHgZyk+Ke53LyGgoAdplTKhhGgu/b4lGmCKD5MF8Vz2WK+cNmZlMlrU96qkDK8pLjFFmxbksEJ3XNfnT3gC0AiH3GtfB/F7Rq6wrGL4w29uesYRD9OwJW7jxtElYcBo0gjVfowJ+ev4G/BRmNUG4cyPqUWxZ1HttE9BH8fOPvl4g30DzPRCeErzw5455OI02lBOlIhg/n+4cwN15+1/AWK x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY3PR18MB4707.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(376002)(136003)(39860400002)(396003)(451199021)(5660300002)(8936002)(52536014)(41300700001)(2906002)(86362001)(66476007)(76116006)(66556008)(8676002)(66946007)(6916009)(4326008)(66446008)(64756008)(316002)(478600001)(54906003)(45080400002)(71200400001)(7696005)(107886003)(9686003)(6506007)(26005)(186003)(53546011)(122000001)(83380400001)(33656002)(38100700002)(38070700005)(55016003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?R7aGBCUwzNmLNfSr4keOtqRJ7JUBTUDeeZQmmmVQKaw/aWrOaI9mgqFCOnnk?= =?us-ascii?Q?2bvg4M+92XKl1uDnkzDJ+YsPOT8dMk/a8Rmml+QCcmKwSeYIU6tQG3NqILxh?= =?us-ascii?Q?Vu4CDszorUVw3sCYNsiysx5FIwVi4zkU/BqrvGXgtdtlOIrbCg7rCuaWiNTw?= =?us-ascii?Q?vxmgo8x+oM9B09NtnWnssXWAIVbYbZ7Jx7Ux2rP4cLaF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dEOLF6OiZIk35Jbq4DnPxo60t9UxSuTPAoz9sslTNfiu5JOQut?= =?us-ascii?Q?rWARLL+T2VehiWGV+LWRYRmfUBBrZF3aFSLO3b54ds7ZgVtx6UXQFB3ecOe8?= =?us-ascii?Q?PJXKk16wJLrlRG3RfNeElFk4pUqs6s7lSJEaL7bJOXgrKlfCIgCSMSDPpOi6?= =?us-ascii?Q?jzwqt5OMgQRHUVNvEv2vrJ/8rNKDgeskHbvvSFYY9PPdKKUN9qPv8djeWpgk?= =?us-ascii?Q?gP/g+xM9pUYgJEXFMHh2vlX/NV2OkucHQ3PxiG+x8Nmg4ujQ17JVqNJR2yYa?= =?us-ascii?Q?whDignQbB/QROlRUNWWuzZSKQrbk1Zt3KoozhUrNAG8YdIT6bplmt/yo58ix?= =?us-ascii?Q?QRA6mdYaVY8kQVko0sw8wFNvM26dlEdS/AbFdJ4M3fUtw5v0aIFZ3ElrqL9V?= =?us-ascii?Q?YrtE4dBmVp8C9OiCYTsbIzJKC2th6ZFPEmY4AX+qvvwsPrJ7f0cZtkd/dQ3I?= =?us-ascii?Q?uJBwFnaD7H4ebL153IV17UahTerSWvUI8YUyv9PH?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4707.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dbf4141-c78c-4fe8-7362-08db3106c7c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2023 10:08:59.4106 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: B+KIycUjQWSnQI07jF4Tb9N8ZYfb0KFHHbeL0cCEieCk+DIylelY0N3mizUohL4YLqTmuv7Z3sLUEzrNQllI1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR18MB3919 X-Proofpoint-ORIG-GUID: eAM2zbAwG2YQr0eAOr3jfSDJcfBhpVNl X-Proofpoint-GUID: eAM2zbAwG2YQr0eAOr3jfSDJcfBhpVNl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-30_04,2023-03-30_01,2023-02-09_01 X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please see inline. > -----Original Message----- > From: Leon Romanovsky > Sent: Thursday, March 30, 2023 11:49 AM > To: Sai Krishna Gajula > Cc: davem@davemloft.net; edumazet@google.com; kuba@kernel.org; > pabeni@redhat.com; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > Sunil Kovvuri Goutham ; > richardcochran@gmail.com; Hariprasad Kelam > Subject: [EXT] Re: [net PATCH 3/7] octeontx2-af: Add validation for lmac = type >=20 > External Email >=20 > ---------------------------------------------------------------------- > On Wed, Mar 29, 2023 at 10:36:15PM +0530, Sai Krishna wrote: > > From: Hariprasad Kelam > > > > Upon physical link change, firmware reports to the kernel about the > > change along with the details like speed, lmac_type_id, etc. > > Kernel derives lmac_type based on lmac_type_id received from firmware. > > > > In a few scenarios, firmware returns an invalid lmac_type_id, which is > > resulting in below kernel panic. This patch adds the missing > > validation of the lmac_type_id field. > > > > Internal error: Oops: 96000005 [#1] PREEMPT SMP > > [ 35.321595] Modules linked in: > > [ 35.328982] CPU: 0 PID: 31 Comm: kworker/0:1 Not tainted > > 5.4.210-g2e3169d8e1bc-dirty #17 > > [ 35.337014] Hardware name: Marvell CN103XX board (DT) > > [ 35.344297] Workqueue: events work_for_cpu_fn > > [ 35.352730] pstate: 40400089 (nZcv daIf +PAN -UAO) > > [ 35.360267] pc : strncpy+0x10/0x30 > > [ 35.366595] lr : cgx_link_change_handler+0x90/0x180 > > > > Fixes: 61071a871ea6 ("octeontx2-af: Forward CGX link notifications to > > PFs") > > Signed-off-by: Hariprasad Kelam > > Signed-off-by: Sunil Kovvuri Goutham > > Signed-off-by: Sai Krishna > > --- > > drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > > b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > > index 724df6398bbe..180aa84cf1c3 100644 > > --- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > > +++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c > > @@ -1231,6 +1231,13 @@ static inline void link_status_user_format(u64 > lstat, > > linfo->an =3D FIELD_GET(RESP_LINKSTAT_AN, lstat); > > linfo->fec =3D FIELD_GET(RESP_LINKSTAT_FEC, lstat); > > linfo->lmac_type_id =3D FIELD_GET(RESP_LINKSTAT_LMAC_TYPE, lstat); > > + > > + if (linfo->lmac_type_id >=3D LMAC_MODE_MAX) { > > + dev_err(&cgx->pdev->dev, "Unknown lmac_type_id %d > reported by firmware on cgx port%d:%d", > > + linfo->lmac_type_id, cgx->cgx_id, lmac_id); > > + return; >=20 > You are keeping old lmac_type, which is out-of-sync now. > Why don't you do something like that? >=20 > if (linfo->lmac_type_id >=3D LMAC_MODE_MAX) { > strncpy(linfo->lmac_type, "Unknown", LMACTYPE_STR_LEN - 1); > return; > } >=20 >=20 We will add the proposed change (Unknown). Since we need to know the firmwa= re reported lmac type ID is proper or not, we will keep dev_err also. > > + } > > + > > lmac_string =3D cgx_lmactype_string[linfo->lmac_type_id]; > > strncpy(linfo->lmac_type, lmac_string, LMACTYPE_STR_LEN - 1); } > > -- > > 2.25.1 > > Thanks, Sai