mirror of https://github.com/ipxe/ipxe.git
[block] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
7ff3fc7c72
commit
9423a85f71
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue