aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index f5819527ec9d..36da54ad2b7b 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -276,10 +276,8 @@ static void ibmveth_free_buffer_pool(struct ibmveth_adapter *adapter, struct ibm
276{ 276{
277 int i; 277 int i;
278 278
279 if(pool->free_map) { 279 kfree(pool->free_map);
280 kfree(pool->free_map); 280 pool->free_map = NULL;
281 pool->free_map = NULL;
282 }
283 281
284 if(pool->skbuff && pool->dma_addr) { 282 if(pool->skbuff && pool->dma_addr) {
285 for(i = 0; i < pool->size; ++i) { 283 for(i = 0; i < pool->size; ++i) {