mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
octeontx2-pf: Fix leak of SQ timestamp buffer on teardown
The send-queue timestamp ring is allocated with qmem_alloc() when
timestamping is used, but otx2_free_sq_res() never freed sq->timestamps,
leaking that memory across ifdown and device removal. Add the missing
qmem_free() alongside the other SQ companion buffers.
Fixes: c9c12d339d ("octeontx2-pf: Add support for PTP clock")
Cc: Aleksey Makarov <amakarov@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260615030704.504536-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1f24c0d01d
commit
a056db30de
|
|
@ -1575,6 +1575,7 @@ static void otx2_free_sq_res(struct otx2_nic *pf)
|
|||
qmem_free(pf->dev, sq->sqe_ring);
|
||||
qmem_free(pf->dev, sq->cpt_resp);
|
||||
qmem_free(pf->dev, sq->tso_hdrs);
|
||||
qmem_free(pf->dev, sq->timestamps);
|
||||
kfree(sq->sg);
|
||||
kfree(sq->sqb_ptrs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user