summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2017-03-09 13:16:56 +0100
committerMichael Brown2017-03-09 13:16:56 +0100
commit9423a85f71b14af6f69897fe5172c60a34b28c42 (patch)
tree01ddf7325f957f02a69f5fe710f9063265d2da44 /src/core
parent[scsi] Use intfs_shutdown() when shutting down multiple interfaces (diff)
downloadipxe-9423a85f71b14af6f69897fe5172c60a34b28c42.tar.gz
ipxe-9423a85f71b14af6f69897fe5172c60a34b28c42.tar.xz
ipxe-9423a85f71b14af6f69897fe5172c60a34b28c42.zip
[block] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/sanboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/sanboot.c b/src/core/sanboot.c
index 85d0bc7f..95fa5c4e 100644
--- a/src/core/sanboot.c
+++ b/src/core/sanboot.c
@@ -171,8 +171,7 @@ static void sandev_command_expired ( struct retry_timer *timer,
static void sandev_restart ( struct san_device *sandev, int rc ) {
/* Restart block device interface */
- intf_nullify ( &sandev->command ); /* avoid potential loops */
- intf_restart ( &sandev->block, rc );
+ intfs_restart ( rc, &sandev->command, &sandev->block, NULL );
/* Close any outstanding command */
sandev_command_close ( sandev, rc );