]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: fix erroneous WARN_ON
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 27 Aug 2015 15:42:33 +0000 (11:42 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:22 +0000 (08:32 -0800)
commit054cfc1b7e64a826c385b6ea4a92123aaa5dcd9b
tree610a51ab01b99b0245ad228db5d3a652c13abd9a
parent7b31b45ca41b6519e25875118543a38a9813c9fe
i40e: fix erroneous WARN_ON

Orabug: 22342532

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>
(cherry picked from commit 1e8efb42cf32982d68c1ceab3e3dc15a05157632)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c