diff options
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r-- | drivers/scsi/aacraid/aachba.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index f9deab686dc4..fc16fe0dfa84 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c | |||
@@ -365,7 +365,6 @@ static void get_container_name_callback(void *context, struct fib * fibptr) | |||
365 | struct scsi_cmnd * scsicmd; | 365 | struct scsi_cmnd * scsicmd; |
366 | 366 | ||
367 | scsicmd = (struct scsi_cmnd *) context; | 367 | scsicmd = (struct scsi_cmnd *) context; |
368 | scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; | ||
369 | 368 | ||
370 | if (!aac_valid_context(scsicmd, fibptr)) | 369 | if (!aac_valid_context(scsicmd, fibptr)) |
371 | return; | 370 | return; |
@@ -629,9 +628,9 @@ int aac_probe_container(struct aac_dev *dev, int cid) | |||
629 | if (_aac_probe_container(scsicmd, aac_probe_container_callback1) == 0) | 628 | if (_aac_probe_container(scsicmd, aac_probe_container_callback1) == 0) |
630 | while (scsicmd->device == scsidev) | 629 | while (scsicmd->device == scsidev) |
631 | schedule(); | 630 | schedule(); |
631 | kfree(scsidev); | ||
632 | status = scsicmd->SCp.Status; | 632 | status = scsicmd->SCp.Status; |
633 | kfree(scsicmd); | 633 | kfree(scsicmd); |
634 | kfree(scsidev); | ||
635 | return status; | 634 | return status; |
636 | } | 635 | } |
637 | 636 | ||
@@ -1321,7 +1320,6 @@ static void io_callback(void *context, struct fib * fibptr) | |||
1321 | u32 cid; | 1320 | u32 cid; |
1322 | 1321 | ||
1323 | scsicmd = (struct scsi_cmnd *) context; | 1322 | scsicmd = (struct scsi_cmnd *) context; |
1324 | scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; | ||
1325 | 1323 | ||
1326 | if (!aac_valid_context(scsicmd, fibptr)) | 1324 | if (!aac_valid_context(scsicmd, fibptr)) |
1327 | return; | 1325 | return; |
@@ -1571,7 +1569,6 @@ static void synchronize_callback(void *context, struct fib *fibptr) | |||
1571 | struct scsi_cmnd *cmd; | 1569 | struct scsi_cmnd *cmd; |
1572 | 1570 | ||
1573 | cmd = context; | 1571 | cmd = context; |
1574 | cmd->SCp.phase = AAC_OWNER_MIDLEVEL; | ||
1575 | 1572 | ||
1576 | if (!aac_valid_context(cmd, fibptr)) | 1573 | if (!aac_valid_context(cmd, fibptr)) |
1577 | return; | 1574 | return; |
@@ -2127,7 +2124,6 @@ static void aac_srb_callback(void *context, struct fib * fibptr) | |||
2127 | struct scsi_cmnd *scsicmd; | 2124 | struct scsi_cmnd *scsicmd; |
2128 | 2125 | ||
2129 | scsicmd = (struct scsi_cmnd *) context; | 2126 | scsicmd = (struct scsi_cmnd *) context; |
2130 | scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; | ||
2131 | 2127 | ||
2132 | if (!aac_valid_context(scsicmd, fibptr)) | 2128 | if (!aac_valid_context(scsicmd, fibptr)) |
2133 | return; | 2129 | return; |