[Intel-wired-lan] [PATCH net 3/3] ice: protect ring accesses with WRITE_ONCE
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Jun 11 15:43:54 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Ciara Loftus
> Sent: Tuesday, June 9, 2020 6:20 AM
> To: intel-wired-lan at lists.osuosl.org
> Cc: netdev at vger.kernel.org; Topel, Bjorn <bjorn.topel at intel.com>;
> Karlsson, Magnus <magnus.karlsson at intel.com>
> 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 <ciara.loftus at intel.com>
> ---
> 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 <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list