diff options
author | mav <mav@FreeBSD.org> | 2015-11-06 17:29:21 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-11-06 17:29:21 +0000 |
commit | ea0bf14fa7ba68c819f16064dab1ad5894f60371 (patch) | |
tree | 3a175fe15995f5c57d2a952c2b00943c4b36a4a2 /sys/cam | |
parent | e38c1c2c8250f9f922da2776b0a2102b30f94d5a (diff) | |
download | FreeBSD-src-ea0bf14fa7ba68c819f16064dab1ad5894f60371.zip FreeBSD-src-ea0bf14fa7ba68c819f16064dab1ad5894f60371.tar.gz |
Add two more KASSERTs.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ctl/ctl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 0d10721..47e10c3 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -11042,7 +11042,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]; |