]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: use cpumask_copy instead of direct assignment
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 12 Jul 2017 09:46:05 +0000 (05:46 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 25 Aug 2017 21:52:42 +0000 (14:52 -0700)
commit1a9218c5489f9f18d7ddcdabad81a07b9bbf3e9e
tree639f2fc5e458ad30266af65f8bf99adf3daf28d4
parentc414c79b1ec36e9872de92e1db948bdc43d81752
i40e: use cpumask_copy instead of direct assignment

According to the header file cpumask.h, we shouldn't be directly copying
a cpumask_t, since its a bitmap and might not be copied correctly. Lets
use the provided cpumask_copy() function instead.

Signed-off-by: Jacob Keller <jacob.e.keller@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_main.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c