Browse Source

[scsi] Use intfs_shutdown() when shutting down multiple interfaces

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
7ff3fc7c72
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      src/drivers/block/scsi.c

+ 3
- 5
src/drivers/block/scsi.c View File

394
 	}
394
 	}
395
 
395
 
396
 	/* Shut down interfaces */
396
 	/* Shut down interfaces */
397
-	intf_shutdown ( &scsicmd->scsi, rc );
398
-	intf_shutdown ( &scsicmd->block, rc );
397
+	intfs_shutdown ( rc, &scsicmd->scsi, &scsicmd->block, NULL );
399
 }
398
 }
400
 
399
 
401
 /**
400
 /**
840
 	process_del ( &scsidev->process );
839
 	process_del ( &scsidev->process );
841
 
840
 
842
 	/* Shut down interfaces */
841
 	/* Shut down interfaces */
843
-	intf_shutdown ( &scsidev->block, rc );
844
-	intf_shutdown ( &scsidev->scsi, rc );
845
-	intf_shutdown ( &scsidev->ready, rc );
842
+	intfs_shutdown ( rc, &scsidev->block, &scsidev->scsi, &scsidev->ready,
843
+			 NULL );
846
 
844
 
847
 	/* Shut down any remaining commands */
845
 	/* Shut down any remaining commands */
848
 	list_for_each_entry_safe ( scsicmd, tmp, &scsidev->cmds, list ) {
846
 	list_for_each_entry_safe ( scsicmd, tmp, &scsidev->cmds, list ) {

Loading…
Cancel
Save