diff options
author | asomers <asomers@FreeBSD.org> | 2017-12-11 20:21:35 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2017-12-11 20:21:35 +0000 |
commit | 464bfd30b94a830ef5710d458dba453495e71b6e (patch) | |
tree | 3fc5a33fd0ddc055c67acd93fa54b7681e056f38 /sys/cam | |
parent | 18800f4ac5e6eb1ed3f7d389d12069d24779e0f4 (diff) | |
download | FreeBSD-src-464bfd30b94a830ef5710d458dba453495e71b6e.zip FreeBSD-src-464bfd30b94a830ef5710d458dba453495e71b6e.tar.gz |
MFC r325959:
Add assertion in probedone() that we're holding the device lock.
Submitted by: ken
Reviewed by: asomers
Sponsored by: Spectra Logic Corp
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_xpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c index a43c6b6..a65066e 100644 --- a/sys/cam/scsi/scsi_xpt.c +++ b/sys/cam/scsi/scsi_xpt.c @@ -1128,6 +1128,7 @@ probedone(struct cam_periph *periph, union ccb *done_ccb) softc = (probe_softc *)periph->softc; path = done_ccb->ccb_h.path; priority = done_ccb->ccb_h.pinfo.priority; + cam_periph_assert(periph, MA_OWNED); switch (softc->action) { case PROBE_TUR: |