]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3e000a6d484cb63f86037d13d9d563f902c60be
treea3bb3a5cab3e36840042ae3361f9caf650c7c21e
parent1de6c042a9e555e9be9b5d50c04933a41bcaeb78
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