From: Mitch Williams Date: Fri, 19 Jun 2015 15:56:30 +0000 (-0700) Subject: i40evf: fix panic during MTU change X-Git-Tag: omap-for-v4.3/legacy-v2-signed~86^2~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c818a1d58c7897b8a6f531684516f9c236fe1b;p=pandora-kernel.git i40evf: fix panic during MTU change Down was requesting queue disables, but then exited immediately without waiting for the queues to actually disable. This could allow any function called after i40evf_down to run immediately, including i40evf_up, and causes a memory leak. Removing the whole reinit_locked function is the best way to go about this, and allows for the driver to handle the state changes by requesting reset from the periodic timer. Also, add a couple WARN_ONs in slow path to help us recognize if we re-introduce this issue or missed any cases. Signed-off-by: Mitch Williams Signed-off-by: Jesse Brandeburg Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed