diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-10-06 23:33:56 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2020-10-06 23:33:56 +0000 |
commit | a1975719dd196176539d359e36b5a156c70b96d0 (patch) | |
tree | 95b3de61b459985f6ba44a41ddb8ece739b870b2 /sys/cam/cam_sim.c | |
parent | 6debfd4b1335434c65428be868ecff6282134921 (diff) | |
download | src-a1975719dd196176539d359e36b5a156c70b96d0.tar.gz src-a1975719dd196176539d359e36b5a156c70b96d0.zip |
Notes
Diffstat (limited to 'sys/cam/cam_sim.c')
-rw-r--r-- | sys/cam/cam_sim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_sim.c b/sys/cam/cam_sim.c index 317ede94e305..58600798bae6 100644 --- a/sys/cam/cam_sim.c +++ b/sys/cam/cam_sim.c @@ -134,6 +134,7 @@ cam_sim_free(struct cam_sim *sim, int free_devq) mtx = sim->mtx; mtx_assert(mtx, MA_OWNED); } + KASSERT(sim->refcount >= 1, ("sim->refcount >= 1")); sim->refcount--; if (sim->refcount > 0) { error = msleep(sim, mtx, PRIBIO, "simfree", 0); |