summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>2018-02-13 18:23:41 -0600
committerDavid S. Miller <davem@davemloft.net>2018-02-14 14:39:10 -0500
commit6e4842ddfc2b08931ebd6c0bc95322dd56e5232b (patch)
treef6dc0ca395c00347db7c22133223699b86ab7c80 /drivers
parent34f0f4e3f48810b0ba080bf2a65370b0cc179c51 (diff)
downloadlinux-stable-6e4842ddfc2b08931ebd6c0bc95322dd56e5232b.tar.gz
linux-stable-6e4842ddfc2b08931ebd6c0bc95322dd56e5232b.tar.bz2
linux-stable-6e4842ddfc2b08931ebd6c0bc95322dd56e5232b.zip
ibmvnic: Fix NAPI structures memory leak
This memory is allocated during initialization but never freed, so do that now. Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/ibm/ibmvnic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 8625f5e5b6d4..23e0b423025a 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -825,6 +825,8 @@ static void release_resources(struct ibmvnic_adapter *adapter)
}
}
}
+ kfree(adapter->napi);
+ adapter->napi = NULL;
release_login_rsp_buffer(adapter);
}