]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[block] Use intfs_shutdown() when shutting down multiple interfaces
authorMichael Brown <mcb30@ipxe.org>
Thu, 9 Mar 2017 12:16:56 +0000 (12:16 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 9 Mar 2017 12:16:56 +0000 (12:16 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/sanboot.c

index 85d0bc7f6aa3212de6bbd30d1fb89b3fbf958b18..95fa5c4eed9eb63435e4b2c5773668cd6c2ba3a9 100644 (file)
@@ -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 );