From 9423a85f71b14af6f69897fe5172c60a34b28c42 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 9 Mar 2017 12:16:56 +0000 Subject: [PATCH] [block] Use intfs_shutdown() when shutting down multiple interfaces Signed-off-by: Michael Brown --- src/core/sanboot.c | 3 +-- 1 file changed, 1 insertion(+), 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 );