> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Ciara Loftus > Sent: Tuesday, June 9, 2020 6:20 AM > To: [email protected] > Cc: [email protected]; Topel, Bjorn <[email protected]>; > Karlsson, Magnus <[email protected]> > Subject: [Intel-wired-lan] [PATCH net 3/3] 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 <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice_lib.c | 8 ++++---- > drivers/net/ethernet/intel/ice/ice_main.c | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-)
Tested-by: Andrew Bowers <[email protected]>
