diff options
author | Nathan Fontenot <nfont@linux.vnet.ibm.com> | 2017-03-16 04:38:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-17 05:25:43 +0100 |
commit | 9501df3cd9204f5859f649182431616a31ee88a1 (patch) | |
tree | 3e434eaf114b96924469d4f23ae5d8801b9dcb27 /drivers/net/ethernet | |
parent | net: ipv6: set route type for anycast routes (diff) | |
download | linux-9501df3cd9204f5859f649182431616a31ee88a1.tar.xz linux-9501df3cd9204f5859f649182431616a31ee88a1.zip |
ibmvnic: Free tx/rx scrq pointer array when releasing sub-crqs
The pointer array for the tx/rx sub crqs should be free'ed when
releasing the tx/rx sub crqs.
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 5f11b4dc95d2..b23d6545f835 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1257,6 +1257,7 @@ static void release_sub_crqs(struct ibmvnic_adapter *adapter) release_sub_crq_queue(adapter, adapter->tx_scrq[i]); } + kfree(adapter->tx_scrq); adapter->tx_scrq = NULL; } @@ -1269,6 +1270,7 @@ static void release_sub_crqs(struct ibmvnic_adapter *adapter) release_sub_crq_queue(adapter, adapter->rx_scrq[i]); } + kfree(adapter->rx_scrq); adapter->rx_scrq = NULL; } } |