Skip to content

Commit

Permalink
[block] Use intfs_shutdown() when shutting down multiple interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 9, 2017
1 parent 7ff3fc7 commit 9423a85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/sanboot.c
Expand Up @@ -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 );
Expand Down

0 comments on commit 9423a85

Please sign in to comment.