summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-11-13 19:27:38 +0000
committermav <mav@FreeBSD.org>2015-11-13 19:27:38 +0000
commitf2b6c4f9dfb9e83c7365a0ba7c33fa7d8e0ae6cb (patch)
tree561215c53827474a04778522f75eace608cdec81 /sys/cam
parentcb6a7b1667d81ebda8fa5224fb3e504b423a053f (diff)
downloadFreeBSD-src-f2b6c4f9dfb9e83c7365a0ba7c33fa7d8e0ae6cb.zip
FreeBSD-src-f2b6c4f9dfb9e83c7365a0ba7c33fa7d8e0ae6cb.tar.gz
MFC r290458: Add two more KASSERTs.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 9635d51..476f6f5 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -11044,7 +11044,15 @@ ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io,
return (CTL_ACTION_BLOCK);
pending_entry = ctl_get_cmd_entry(&pending_io->scsiio, NULL);
+ KASSERT(pending_entry->seridx < CTL_SERIDX_COUNT,
+ ("%s: Invalid seridx %d for pending CDB %02x %02x @ %p",
+ __func__, pending_entry->seridx, pending_io->scsiio.cdb[0],
+ pending_io->scsiio.cdb[1], pending_io));
ooa_entry = ctl_get_cmd_entry(&ooa_io->scsiio, NULL);
+ KASSERT(ooa_entry->seridx < CTL_SERIDX_COUNT,
+ ("%s: Invalid seridx %d for ooa CDB %02x %02x @ %p",
+ __func__, ooa_entry->seridx, ooa_io->scsiio.cdb[0],
+ ooa_io->scsiio.cdb[1], ooa_io));
serialize_row = ctl_serialize_table[ooa_entry->seridx];
OpenPOWER on IntegriCloud