isp: fix ISPCTL_ABORT_CMD switch case

Prevent kernel panic by not running ISPCTL_FCLINK_TEST after a
failed ISPCTL_ABORT_CMD.

Reviewed by:	mav
Tested by:	Arne Steinkamm <arne@steinkamm.com>
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45718

(cherry picked from commit 8aa9192ce98aec07b24f8279c709237dd2c4421b)
This commit is contained in:
Mariusz Zaborski 2024-06-25 16:50:28 +02:00
parent c5e0b035d9
commit 944827bcf6

View file

@ -3088,6 +3088,7 @@ isp_control(ispsoftc_t *isp, ispctl_t ctl, ...)
if (ab->abrt_nphdl == ISP24XX_ABRT_OKAY)
return (0);
isp_prt(isp, ISP_LOGWARN, "Chan %d handle %d abort returned 0x%x", chan, tgt, ab->abrt_nphdl);
break;
}
case ISPCTL_FCLINK_TEST:
{