aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-02-08 23:02:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-02-11 22:06:58 +0000
commite6405c8c37335a42a187a9d2470025b57347b1b5 (patch)
tree21f0b3c6e2ac76efb9fb45db436f1912fe57f2b0 /sys
parent47769bc5573fc5d2263f9e20cb06f6c12d0a82e7 (diff)
downloadsrc-e6405c8c37335a42a187a9d2470025b57347b1b5.tar.gz
src-e6405c8c37335a42a187a9d2470025b57347b1b5.zip
cam: Properly find the sim in the assertion in xpt_pollwait().
I had missed merging this fixup into 447b3557a9cc5f00a301be8404339f21a9a0faa8 before pushing it. Pointy hat to: jhb MFC after: 2 weeks
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/cam_xpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index bae40faf50e4..9cfee80a6049 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -3229,7 +3229,8 @@ void
xpt_pollwait(union ccb *start_ccb, uint32_t timeout)
{
- KASSERT(cam_sim_pollable(sim), ("%s: non-pollable sim", __func__));
+ KASSERT(cam_sim_pollable(start_ccb->ccb_h.path->bus->sim),
+ ("%s: non-pollable sim", __func__));
while (--timeout > 0) {
xpt_sim_poll(start_ccb->ccb_h.path->bus->sim);
if ((start_ccb->ccb_h.status & CAM_STATUS_MASK)