ibmvnic: Fix statistics buffers memory leak
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 16 May 2018 20:49:05 +0000 (15:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 18:57:19 +0000 (14:57 -0400)
commit0718421389da3d4352f4538449e83316fbed4389
treea3bb3a5cab3e36840042ae3361f9caf650c7c21e
parent134bbe7f21f4455c8be64f945b8b67094f768de0
ibmvnic: Fix statistics buffers memory leak

Move initialization of statistics buffers from ibmvnic_init function
into ibmvnic_probe. In the current state, ibmvnic_init will be called
again during a device reset, resulting in the allocation of new
buffers without freeing the old ones.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c