igb: Added rcu_lock to avoid race
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Thu, 27 Jun 2013 09:10:23 +0000 (09:10 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 22 Aug 2013 09:25:29 +0000 (02:25 -0700)
commit7f90128e246ea9827dd5ac532e49611aaf001892
tree9078b7cf0c6028f4036a9905eb0f4ece3ce2e8fa
parente5c3370ffbe1336f7ee01233ba6b48a1ac06ec07
igb: Added rcu_lock to avoid race

This patch adds rcu_lock to avoid possible race condition with igb_update_stats
function accessing the rings in free_ q_vector.

CC: Eric Dumazet <edumazet@google.com>
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c