]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: don't stop watchdog if it hasn't started
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 4 Jun 2014 04:22:38 +0000 (04:22 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jun 2014 11:44:58 +0000 (04:44 -0700)
commit86fb07c8672cedfcb1db65e437b6c2d0921af847
tree203f79f9f3118ffa2c358af06a15d5ecef2d2465
parent06e24df0099e083bfff3b5c25dac361c77d0443d
i40evf: don't stop watchdog if it hasn't started

If the VF driver fails to complete early init, then rmmod can cause a
softlock when the driver tries to stop a watchdog timer that never even
got initialized.

Add a check to see if the timer is actually initialized before stopping
it.

Change-ID: Id9d550aa8838e07f4b02afe7bc017ef983779efc
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c