|
@@ -392,11 +392,13 @@ static void scsicmd_close ( struct scsi_command *scsicmd, int rc ) {
|
392
|
392
|
scsidev, scsicmd->tag, strerror ( rc ) );
|
393
|
393
|
}
|
394
|
394
|
|
|
395
|
+ /* Remove from list of commands */
|
|
396
|
+ list_del ( &scsicmd->list );
|
|
397
|
+
|
395
|
398
|
/* Shut down interfaces */
|
396
|
399
|
intfs_shutdown ( rc, &scsicmd->scsi, &scsicmd->block, NULL );
|
397
|
400
|
|
398
|
|
- /* Remove from list of commands and drop list's reference */
|
399
|
|
- list_del ( &scsicmd->list );
|
|
401
|
+ /* Drop list's reference */
|
400
|
402
|
scsicmd_put ( scsicmd );
|
401
|
403
|
}
|
402
|
404
|
|