提交 011f4ea0 编写于 作者: A Amit Kumar Salecha 提交者: David S. Miller

netxen: fix tx ring memory leak

o While unloading driver or resetting the context, tx ring was not
  getting free.
Signed-off-by: NAmit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 704da560
......@@ -184,6 +184,8 @@ void netxen_free_sw_resources(struct netxen_adapter *adapter)
tx_ring = adapter->tx_ring;
vfree(tx_ring->cmd_buf_arr);
kfree(tx_ring);
adapter->tx_ring = NULL;
}
int netxen_alloc_sw_resources(struct netxen_adapter *adapter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册