mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
scsi: megaraid: Fix up debug message in megaraid_abort_and_reset()
Found by Smatch.
Fixes: 5bcd3bfbda
("scsi: megaraid: Pass in NULL scb for host reset")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20231023073021.21954-1-hare@suse.de
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
c7f4c5dec6
commit
f2d79aa16a
@ -1925,10 +1925,13 @@ megaraid_abort_and_reset(adapter_t *adapter, struct scsi_cmnd *cmd, int aor)
|
||||
struct list_head *pos, *next;
|
||||
scb_t *scb;
|
||||
|
||||
dev_warn(&adapter->dev->dev, "%s cmd=%x <c=%d t=%d l=%d>\n",
|
||||
(aor == SCB_ABORT)? "ABORTING":"RESET",
|
||||
cmd->cmnd[0], cmd->device->channel,
|
||||
cmd->device->id, (u32)cmd->device->lun);
|
||||
if (aor == SCB_ABORT)
|
||||
dev_warn(&adapter->dev->dev,
|
||||
"ABORTING cmd=%x <c=%d t=%d l=%d>\n",
|
||||
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))
|
||||
return FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user