Fix a possible race condition in spc_msgin().
authoraoyama <aoyama@openbsd.org>
Sat, 25 Sep 2021 23:53:35 +0000 (23:53 +0000)
committeraoyama <aoyama@openbsd.org>
Sat, 25 Sep 2021 23:53:35 +0000 (23:53 +0000)
commit9bdd0325a4e1ddfd4e53e0809dc9db98d88d30c5
tree2be2f0ea4f4c6c43d98fe4531b0458db9366f2f9
parent5faa2bc57642c829bda5978429d37ca86050afb2
Fix a possible race condition in spc_msgin().

This comes from NetBSD:sys/dev/ic/mb89352.c fix by tsutsui:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/mb89352.c.diff?r1=1.57&r2=1.58&f=h

Tested on LUNA-88K2 by me.
sys/arch/luna88k/dev/mb89352.c