diff options
author | Will Deacon <will@kernel.org> | 2019-12-19 18:40:21 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-04-15 22:36:41 +0200 |
commit | 9b4fb5cec031f81ef436bf2cfd9fc265e25f6e45 (patch) | |
tree | b33080e6d87ae7af66b5ad77987d6a4fa321b0fe /arch/arm64/lib | |
parent | net: tls: Avoid assigning 'const' pointer to non-const pointer (diff) | |
download | linux-9b4fb5cec031f81ef436bf2cfd9fc265e25f6e45.tar.xz linux-9b4fb5cec031f81ef436bf2cfd9fc265e25f6e45.zip |
fault_inject: Don't rely on "return value" from WRITE_ONCE()
It's a bit weird that WRITE_ONCE() evaluates to the value it stores and
it's different to smp_store_release(), which can't be used this way.
In preparation for preventing this in WRITE_ONCE(), change the fault
injection code to use a local variable instead.
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/lib')
0 files changed, 0 insertions, 0 deletions