Skip to content

Commit

Permalink
ibmvnic: Free tx/rx scrq pointer array when releasing sub-crqs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
nfont authored and davem330 committed Mar 17, 2017
1 parent 4ee3973 commit 9501df3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/ibm/ibmvnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 9501df3

Please sign in to comment.