[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <76193B8E-6A8B-4FF9-B6BB-A3A17FB74A61@gmail.com>
Date: Thu, 13 Jan 2022 12:37:10 +0800
From: Ryan Cai <ryancaicse@...il.com>
To: <leon@...nel.org>, <jgg@...pe.ca>
CC: <linux-rdma@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: mlx5: memory leaks
Hi, Kernel Maintainers,
In method mlx5_ib_destroy_gsi of gsi.c, there are memory leaks when ret = ib_destroy_qp(gsi->rx_qp); returns true? I think, ib_free_cq(gsi->cq); kfree(gsi->outstanding_wrs); kfree(gsi->tx_qps); should also be put before return ret before Line 180. If this is a real bug, I can send a patch. Thanks!
Locations: https://github.com/torvalds/linux/blob/master/drivers/infiniband/hw/mlx5/gsi.c#L168-L197
Best,
Ryan
Powered by blists - more mailing lists