mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
Avoid that scst_abort_cmd() triggers a false positive in Coverity
Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4799,6 +4799,13 @@ void scst_abort_cmd(struct scst_cmd *cmd, struct scst_mgmt_cmd *mcmd,
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
/*
|
||||
* Help Coverity recognize that mcmd != NULL if
|
||||
* call_dev_task_mgmt_fn_received == true.
|
||||
*/
|
||||
if (call_dev_task_mgmt_fn_received)
|
||||
EXTRACHECKS_BUG_ON(!mcmd);
|
||||
|
||||
TRACE(TRACE_SCSI|TRACE_MGMT_DEBUG, "Aborting cmd %p (tag %llu, op %x)",
|
||||
cmd, (long long unsigned int)cmd->tag, cmd->cdb[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user