Commit f2d79aa1 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Martin K. Petersen

scsi: megaraid: Fix up debug message in megaraid_abort_and_reset()

Found by Smatch.

Fixes: 5bcd3bfb ("scsi: megaraid: Pass in NULL scb for host reset")
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20231023073021.21954-1-hare@suse.deSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c7f4c5de
...@@ -1925,10 +1925,13 @@ megaraid_abort_and_reset(adapter_t *adapter, struct scsi_cmnd *cmd, int aor) ...@@ -1925,10 +1925,13 @@ megaraid_abort_and_reset(adapter_t *adapter, struct scsi_cmnd *cmd, int aor)
struct list_head *pos, *next; struct list_head *pos, *next;
scb_t *scb; scb_t *scb;
dev_warn(&adapter->dev->dev, "%s cmd=%x <c=%d t=%d l=%d>\n", if (aor == SCB_ABORT)
(aor == SCB_ABORT)? "ABORTING":"RESET", dev_warn(&adapter->dev->dev,
cmd->cmnd[0], cmd->device->channel, "ABORTING cmd=%x <c=%d t=%d l=%d>\n",
cmd->device->id, (u32)cmd->device->lun); cmd->cmnd[0], cmd->device->channel,
cmd->device->id, (u32)cmd->device->lun);
else
dev_warn(&adapter->dev->dev, "RESETTING\n");
if(list_empty(&adapter->pending_list)) if(list_empty(&adapter->pending_list))
return FAILED; return FAILED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment