mirror of
https://github.com/ipxe/ipxe
synced 2025-12-07 18:00:28 +03:00
[block] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user