summaryrefslogtreecommitdiffstats
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2019-06-06 11:34:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-06 17:51:18 +0200
commit9c3cef54c50d93871eaa46c28a06de8bd03fab63 (patch)
treec10452a54d1c57feae1fa9c2ab1ec31f96fbdce4 /drivers/char/random.c
parentd0a178095c5fbbd25454c20e49bc3a7d70ecb769 (diff)
downloadlinux-9c3cef54c50d93871eaa46c28a06de8bd03fab63.tar.gz
linux-9c3cef54c50d93871eaa46c28a06de8bd03fab63.tar.bz2
linux-9c3cef54c50d93871eaa46c28a06de8bd03fab63.zip
VMCI: Fixup atomic64_t abuse
The VMCI driver is abusing atomic64_t and atomic_t, there is no actual atomic RmW operations around. Rewrite the code to use a regular u64 with READ_ONCE() and WRITE_ONCE() and a cast to 'unsigned long'. This fully preserves whatever broken there was (it's not endian-safe for starters, and also looks to be missing ordering). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/random.c')
0 files changed, 0 insertions, 0 deletions