]> git.baikalelectronics.ru Git - kernel.git/commit
net/ena: use READ_ONCE to access completion descriptors
authorNetanel Belgazal <netanel@annapurnalabs.com>
Thu, 9 Feb 2017 13:21:35 +0000 (15:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 03:27:06 +0000 (22:27 -0500)
commit34f6e4dd110b293a33e1cff7de75d5cfabacb561
tree204e1ce4b2e26fe971a06b11565204cb618b8cbc
parentdec7c487f49cab8699e8b0ec101365c5c714a50f
net/ena: use READ_ONCE to access completion descriptors

Completion descriptors are accessed from the driver and from the device.
To avoid reading the old value, use READ_ONCE macro.

Signed-off-by: Netanel Belgazal <netanel@annapurnalabs.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.h
drivers/net/ethernet/amazon/ena/ena_eth_com.c