Commit 9501df3c authored by Nathan Fontenot's avatar Nathan Fontenot Committed by David S. Miller
Browse files

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: default avatarNathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ee39733
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}
}