From 492506203e02a4d1c5955df5f3aad2c0628fa8a1 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 30 Nov 2015 21:16:26 +0000 Subject: [PATCH] MFC r291383: Fix panic when trying to sort unsupported command in OOA queue. Handle unsupported commands as not conflicting/blocking. git-svn-id: svn://svn.freebsd.org/base/stable/10@291496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/cam/ctl/ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index eedcfa99c..24e7e8957 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -11093,6 +11093,8 @@ ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io, __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); + if (ooa_entry->seridx == CTL_SERIDX_INVLD) + return (CTL_ACTION_PASS); /* Unsupported command in OOA queue */ 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], -- 2.45.0