lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <CH0PR18MB43399E3C58EBC7B23FD52AD4CD052@CH0PR18MB4339.namprd18.prod.outlook.com>
Date: Wed, 18 Dec 2024 06:04:55 +0000
From: Geethasowjanya Akula <gakula@...vell.com>
To: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>,
        Sunil Kovvuri
 Goutham <sgoutham@...vell.com>,
        Subbaraya Sundeep Bhatta
	<sbhatta@...vell.com>,
        Hariprasad Kelam <hkelam@...vell.com>,
        Bharat Bhushan
	<bbhushan2@...vell.com>,
        Andrew Lunn <andrew+netdev@...n.ch>,
        "David S.
 Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>, Jakub
 Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>, Simon Horman
	<horms@...nel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "dan.carpenter@...aro.org" <dan.carpenter@...aro.org>,
        "kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
        "error27@...il.com" <error27@...il.com>,
        Przemek Kitszel
	<przemyslaw.kitszel@...el.com>
Subject: RE: [EXTERNAL] [PATCH net v2 2/2] octeontx2-pf: fix error handling of
 devlink port in rvu_rep_create()



>-----Original Message-----
>From: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
>Sent: Tuesday, December 17, 2024 10:53 AM
>To: Sunil Kovvuri Goutham <sgoutham@...vell.com>; Geethasowjanya Akula
><gakula@...vell.com>; Subbaraya Sundeep Bhatta <sbhatta@...vell.com>;
>Hariprasad Kelam <hkelam@...vell.com>; Bharat Bhushan
><bbhushan2@...vell.com>; Andrew Lunn <andrew+netdev@...n.ch>; David
>S. Miller <davem@...emloft.net>; Eric Dumazet <edumazet@...gle.com>;
>Jakub Kicinski <kuba@...nel.org>; Paolo Abeni <pabeni@...hat.com>; Simon
>Horman <horms@...nel.org>; netdev@...r.kernel.org; linux-
>kernel@...r.kernel.org
>Cc: dan.carpenter@...aro.org; kernel-janitors@...r.kernel.org;
>error27@...il.com; harshit.m.mogalapalli@...cle.com; Przemek Kitszel
><przemyslaw.kitszel@...el.com>
>Subject: [EXTERNAL] [PATCH net v2 2/2] octeontx2-pf: fix error handling of
>devlink port in rvu_rep_create()
>
>Unregister the devlink port when register_netdev() fails.
>
>Fixes: 9ed0343f561e ("octeontx2-pf: Add devlink port support")
>Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
>Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
>---
>v1->v2:  Add R.B from Przemek
>---
> drivers/net/ethernet/marvell/octeontx2/nic/rep.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/rep.c
>b/drivers/net/ethernet/marvell/octeontx2/nic/rep.c
>index 9e3fcbae5dee..04e08e06f30f 100644
>--- a/drivers/net/ethernet/marvell/octeontx2/nic/rep.c
>+++ b/drivers/net/ethernet/marvell/octeontx2/nic/rep.c
>@@ -690,6 +690,7 @@ int rvu_rep_create(struct otx2_nic *priv, struct
>netlink_ext_ack *extack)
> 		if (err) {
> 			NL_SET_ERR_MSG_MOD(extack,
> 					   "PFVF representor registration
>failed");
>+			rvu_rep_devlink_port_unregister(rep);
> 			free_netdev(ndev);
> 			goto exit;
> 		}
>--
>2.46.0
Ack.
Thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ