]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: set AQ count after memory allocation
authorMitch Williams <mitch.a.williams@intel.com>
Sun, 4 Oct 2015 00:13:05 +0000 (17:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:13:50 +0000 (04:13 -0700)
commit5fa6aa744cf8ba9da01167aa4361fcf6183d14a4
tree1eea4dd5e2f5c503d746bb01981639f4452ba22f
parent9dbefce2bc9817a518b5b455cd1f40c2fcaa13d6
i40e/i40evf: set AQ count after memory allocation

The standard way to check if the AQ is enabled is to look at the
count field. So we should only set this field after we have
successfully allocated memory. To do otherwise is to incite
panic among the populace.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_adminq.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.c