Re: [PATCH net] net: hns3: fix double free issue for tx spare buffer

From: Jijie Shao

Date: Wed Feb 04 2026 - 09:37:42 EST



on 2026/2/4 10:38, Jakub Kicinski wrote:
On Mon, 2 Feb 2026 18:58:37 +0800 Jijie Shao wrote:
The driver missed to clear ring->tx_spare to NULL when
fail to initialize tx spare buffer. And it will try to
free the tx spare buffer in hns3_fini_ring() if tx_spare
is not NULL. So it may cause double free issue.
Please update this commit message so that reviewers don't have
to do as much research.

ok, I will send v2 to update the commit message

Thanks,
Jijie Shao