i40e: fix erroneous WARN_ON
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 27 Aug 2015 15:42:33 +0000 (11:42 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 8 Oct 2015 21:59:07 +0000 (14:59 -0700)
commit1e8efb42cf32982d68c1ceab3e3dc15a05157632
tree38ba381c4dcd65a071a84f83d96c65fa3fd56a30
parentdf718423250c000ca4323a767cedc2f3219b685c
i40e: fix erroneous WARN_ON

The driver was issuing a WARN_ON during ring size changes
because the code was cloning the rx_ring struct but
not zeroing out the pointers before allocating new memory.

Zero out the pointers in the cloned copy before allocating
new memory for them.  In this case the code was correctly
avoiding memory leaks but still triggering the warning.

Change-ID: I186dd493948e9b7254ab0593d4aad8b68808918d
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
This page took 0.025063 seconds and 5 git commands to generate.