summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 );