]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: allocate memory safer
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Mon, 4 Jan 2016 18:33:05 +0000 (10:33 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:10 +0000 (08:37 -0800)
commit54f8d3fcd49ec4772fed429ae270ad1971441a07
tree66157e289de7d3c2537c3769deb4c64900061565
parentae2614cac449c3621911feb0621825ca1c3803d1
i40e: allocate memory safer

Orabug: 22342532

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>
(cherry picked from commit 38c3cec73c7be6789a3e3ed06ff74ce84f5b1528)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c