|
@@ -1205,8 +1205,8 @@ static void complete_scsi_command(struct CommandList *cp)
|
|
|
scsi_set_resid(cmd, ei->ResidualCnt);
|
|
|
|
|
|
if (ei->CommandStatus == 0) {
|
|
|
- cmd->scsi_done(cmd);
|
|
|
cmd_free(h, cp);
|
|
|
+ cmd->scsi_done(cmd);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1379,8 +1379,8 @@ static void complete_scsi_command(struct CommandList *cp)
|
|
|
dev_warn(&h->pdev->dev, "cp %p returned unknown status %x\n",
|
|
|
cp, ei->CommandStatus);
|
|
|
}
|
|
|
- cmd->scsi_done(cmd);
|
|
|
cmd_free(h, cp);
|
|
|
+ cmd->scsi_done(cmd);
|
|
|
}
|
|
|
|
|
|
static void hpsa_pci_unmap(struct pci_dev *pdev,
|