Index: sys/dev/mrsas/mrsas_cam.c =================================================================== diff -u -N -r0e67a9097d517629c318930b55e12fc0c909aca9 -r83efae7704019e204c8cbd63938254ba6827a78c --- sys/dev/mrsas/mrsas_cam.c (.../mrsas_cam.c) (revision 0e67a9097d517629c318930b55e12fc0c909aca9) +++ sys/dev/mrsas/mrsas_cam.c (.../mrsas_cam.c) (revision 83efae7704019e204c8cbd63938254ba6827a78c) @@ -1909,13 +1909,14 @@ for (i = 0 ; i < sc->max_fw_cmds; i++) { mpt_cmd = sc->mpt_cmd_list[i]; - /* - * Check if the target_id and bus_id is same as the timeout IO - */ - if (mpt_cmd->ccb_ptr) { - /* bus_id = 1 denotes a VD */ - if (bus_id == 1) - tgt_id = (mpt_cmd->ccb_ptr->ccb_h.target_id - (MRSAS_MAX_PD - 1)); + /* + * Check if the target_id and bus_id is same as the timeout IO + */ + if (mpt_cmd->ccb_ptr) { + /* bus_id = 1 denotes a VD */ + if (bus_id == 1) + tgt_id = + (mpt_cmd->ccb_ptr->ccb_h.target_id - (MRSAS_MAX_PD - 1)); if (mpt_cmd->ccb_ptr->cpi.bus_id == bus_id && mpt_cmd->ccb_ptr->ccb_h.target_id == tgt_id) {