]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam: Fix race condition in dainit()
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 16 May 2021 09:35:31 +0000 (10:35 +0100)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 16 May 2021 12:36:54 +0000 (13:36 +0100)
commit8252fe56a0edc95f55b203424a8f2f957959e7a4
tree2614dde20759d32e81c73944a7abc2e1c9c44cde
parent0f206cc91279e630ad9e733eb6e330b7dbe6c70e
cam: Fix race condition in dainit()

Previously, daregister() could have been called before dainit()
initialized the UMA zone.  This would trip a KASSERT.

Reported By: pho
Tested By: pho
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
sys/cam/scsi/scsi_da.c