summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bn/bn_local.h
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2023-02-19 12:23:28 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2023-02-19 12:23:28 +0000
commit472a5df085bbcf0050e124ecf488e2ff280d6e38 (patch)
tree8a0b7302ed4ec75b1ff2e57554210fc7cf2262b5 /lib/libcrypto/bn/bn_local.h
parentd21bca424376716badf568587a1479c6f0fd70d0 (diff)
Do not let the iwx init task run in parallel to wakeup code during resume.
The driver will resume in the ACPI thread and run code to wake the device. If a firmware error occurs then the init task will be scheduled and could then run in parallel to the wakeup code. This would lead to panics as the init task ran while we were not yet done with device initialization. To prevent this problem we now grab the rwlock during wakeup, the same lock which is used to prevent races between the init task and ioctls. Problem found by mvs@, who also suggested the fix implemented here and tested the changes. ok mvs@
Diffstat (limited to 'lib/libcrypto/bn/bn_local.h')
0 files changed, 0 insertions, 0 deletions