]> git.baikalelectronics.ru Git - kernel.git/commit
ice: protect ring accesses with WRITE_ONCE
authorCiara Loftus <ciara.loftus@intel.com>
Tue, 9 Jun 2020 13:19:45 +0000 (13:19 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Jun 2020 05:35:34 +0000 (22:35 -0700)
commitf3da3cf8b9514f193f4b948b104e9fb216573896
treedaba3edf8a8be9f2f85ae07209ecb033e8295882
parentc4c729221d96c65e60a7092fe09df42d1ef44316
ice: protect ring accesses with WRITE_ONCE

The READ_ONCE macro is used when reading rings prior to accessing the
statistics pointer. The corresponding WRITE_ONCE usage when allocating and
freeing the rings to ensure protected access was not in place. Introduce
this.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c