From dc27d29167cc0c2c7235572a7d5a0e6a303b7f2c Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Mon, 13 Oct 2014 12:33:20 +0000 Subject: [PATCH] isert: Fix small memory leak on module unload We were leaking portal structure upon module unload Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5841 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 253c9cd8f..5a40dbf3c 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -1603,6 +1603,7 @@ void isert_portal_release(struct isert_portal *portal) isert_portal_list_remove(portal); + kfree(portal); module_put(THIS_MODULE); }