mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user