qla2x00t-32gbit: Make qlt_handle_abts_completion() more robust

Avoid that this function crashes if mcmd == NULL.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8412 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-06-03 02:55:47 +00:00
parent 2b5161a84d
commit c163f7b261

View File

@@ -5792,7 +5792,7 @@ static void qlt_handle_abts_completion(struct scsi_qla_host *vha,
entry->error_subcode2);
ha->tgt.tgt_ops->free_mcmd(mcmd);
}
} else {
} else if (mcmd) {
ha->tgt.tgt_ops->free_mcmd(mcmd);
}
}