ALSA: seq: virmidi: Use READ_ONCE/WRITE_ONCE() macros
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Jul 2018 12:48:29 +0000 (14:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Jul 2018 12:52:30 +0000 (14:52 +0200)
commit89b4ab213feb11a5bece544cfa12374f66c2c47c
tree9a1725a0138dc002d2c65481cf96e5f8eb0e2e57
parentf7debfe54090d1a1c38e1f070be20d83bb70a8e0
ALSA: seq: virmidi: Use READ_ONCE/WRITE_ONCE() macros

The trigger flag in vmidi object can be referred in different contexts
concurrently, hence it's better to be put with READ_ONCE() and
WRITE_ONCE() macros to assure the accesses.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/seq_virmidi.h
sound/core/seq/seq_virmidi.c