i40e: allocate memory safer
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Mon, 4 Jan 2016 18:33:05 +0000 (10:33 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Feb 2016 16:27:21 +0000 (08:27 -0800)
commit38c3cec73c7be6789a3e3ed06ff74ce84f5b1528
tree951aab76204540b871e750f4b1a5132a35f267bf
parente9f6563d7bb3914711c6601cdf5d9f9b6e1b461f
i40e: allocate memory safer

The sync_vsi_filter function was allocating memory in such
a way that it could sleep (GFP_KERNEL) which was causing a problem
when called by the team driver under rcu_read_lock(), which cannot
be held while sleeping.  Found with lockdep.

Change-ID: I4e59053cb5eedcf3d0ca151715be3dc42a94bdd5
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@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