diff options
author | pjd <pjd@FreeBSD.org> | 2011-02-28 05:45:31 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-02-28 05:45:31 +0000 |
commit | d68b89b014fafcd045f42856cfc1087c288134d4 (patch) | |
tree | db2241469773765e44bccfd482eb625df9197549 /sys/cddl/compat | |
parent | 1a1f7e679b747bc5c85d80936d174ff5bf5f72f3 (diff) | |
download | FreeBSD-src-d68b89b014fafcd045f42856cfc1087c288134d4.zip FreeBSD-src-d68b89b014fafcd045f42856cfc1087c288134d4.tar.gz |
Use proper lock in assertion.
MFC after: 1 month
Diffstat (limited to 'sys/cddl/compat')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c b/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c index bb56909..2708884 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c @@ -94,7 +94,7 @@ ddi_get_soft_state_locked(struct ddi_soft_state *ss, int item) { struct ddi_soft_state_item *itemp; - ASSERT(MUTEX_HELD(&zfsdev_state_lock)); + ASSERT(MUTEX_HELD(&ss->ss_lock)); LIST_FOREACH(itemp, &ss->ss_list, ssi_next) { if (itemp->ssi_item == item) @@ -142,7 +142,7 @@ ddi_soft_state_free_locked(struct ddi_soft_state *ss, int item) { struct ddi_soft_state_item *itemp; - ASSERT(MUTEX_HELD(&zfsdev_state_lock)); + ASSERT(MUTEX_HELD(&ss->ss_lock)); LIST_FOREACH(itemp, &ss->ss_list, ssi_next) { if (itemp->ssi_item == item) |