]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97820df150a100fba5b2f73d6749bab5b27765d9
tree9078b7cf0c6028f4036a9905eb0f4ece3ce2e8fa
parent93e5993d7fb73a368bb8c7b4c141b7ed1da340cd
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