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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user