svn commit: r290778 - stable/10/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Fri Nov 13 19:27:40 UTC 2015
Author: mav
Date: Fri Nov 13 19:27:38 2015
New Revision: 290778
URL: https://svnweb.freebsd.org/changeset/base/290778
Log:
MFC r290458: Add two more KASSERTs.
Modified:
stable/10/sys/cam/ctl/ctl.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/cam/ctl/ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl.c Fri Nov 13 19:26:50 2015 (r290777)
+++ stable/10/sys/cam/ctl/ctl.c Fri Nov 13 19:27:38 2015 (r290778)
@@ -11044,7 +11044,15 @@ ctl_check_for_blockage(struct ctl_lun *l
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];
More information about the svn-src-stable-10
mailing list