Procházet zdrojové kódy

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown před 7 roky
rodič
revize
9423a85f71
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1
    2
      src/core/sanboot.c

+ 1
- 2
src/core/sanboot.c Zobrazit soubor

@@ -171,8 +171,7 @@ static void sandev_command_expired ( struct retry_timer *timer,
171 171
 static void sandev_restart ( struct san_device *sandev, int rc ) {
172 172
 
173 173
 	/* Restart block device interface */
174
-	intf_nullify ( &sandev->command ); /* avoid potential loops */
175
-	intf_restart ( &sandev->block, rc );
174
+	intfs_restart ( rc, &sandev->command, &sandev->block, NULL );
176 175
 
177 176
 	/* Close any outstanding command */
178 177
 	sandev_command_close ( sandev, rc );

Načítá se…
Zrušit
Uložit