david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[block] Use intfs_shutdown() when shutting down multiple interfaces

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-09 12:16:56 +00:00
parent 7ff3fc7c72
commit 9423a85f71
1 changed files with 1 additions and 2 deletions

View 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 );