]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 25 Sep 2017 19:54:33 +0000 (12:54 -0700)
commita8ffdfa27d5099a6c4ffc4a255eeb8656da21776
treed43df08cc1d721e9556addd098aa3ff65ee72f2b
parent9cfe783e9645d1ac37904cda23879b503cf44ae6
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>
Orabug: 26822609

(cherry picked from commit 7e4d01e7d3f7d4f7b0a768a1028cb26ea06c8694)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Dib Chatterjee <dib.chatterjee@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c