* [PATCH net] octeontx2-pf: fix invalid aura pointer free
@ 2026-09-03 14:39 nshettyj
0 siblings, 0 replies; only message in thread
From: nshettyj @ 2026-09-03 14:39 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Geetha sowjanya, Nitin Shetty J, Sunil Goutham, Ratheesh Kannoth,
Subbaraya Sundeep, Bharat Bhushan, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
From: Geetha sowjanya <gakula@marvell.com>
Do not free empty or uninitialized buffer addresses to the aura.
This avoids freeing bad pointers during receive buffer cleanup.
Fixes: ef6c8da71eaf ("octeontx2-pf: cn10K: Reserve LMTST lines per core")
Signed-off-by: Nitin Shetty J <nshettyj@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
index eecee612b7b2..231fd8586b42 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
@@ -845,7 +845,7 @@ static inline void __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura,
static inline void cn10k_aura_freeptr(void *dev, int aura, u64 buf)
{
struct otx2_nic *pfvf = dev;
- u64 ptrs[2];
+ u64 ptrs[2] = {0};
ptrs[1] = buf;
get_cpu();
--
2.48.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-03 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 14:39 [PATCH net] octeontx2-pf: fix invalid aura pointer free nshettyj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox