ibmvnic: Fixup atomic API usage
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 19 Apr 2017 17:44:47 +0000 (13:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:33:52 +0000 (13:33 -0400)
commit58c8c0c096611f6a1d43ed24e320494bf894a66e
treef7d746339f099da59ef3a5e2aaaceb8174a6e93a
parent59af56c25bc34d4e98820c694d48fd5145fb6e4f
ibmvnic: Fixup atomic API usage

Replace a couple of modifications of an atomic followed
by a read of the atomic, which is no longer atomic, to
use atomic_XX_return variants to avoid race conditions.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c