]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[iscsi] Use intfs_shutdown() when shutting down multiple interfaces
authorMichael Brown <mcb30@ipxe.org>
Thu, 9 Mar 2017 12:16:15 +0000 (12:16 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 9 Mar 2017 12:16:15 +0000 (12:16 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/iscsi.c

index d6f80084def4783c64f07845ae92273010c19edf..51d09ddc7b6af0194dbf5a02b9d7df115c591b5d 100644 (file)
@@ -231,10 +231,8 @@ static void iscsi_close ( struct iscsi_session *iscsi, int rc ) {
        process_del ( &iscsi->process );
 
        /* Shut down interfaces */
-       intf_nullify ( &iscsi->data ); /* avoid potential loops */
-       intf_shutdown ( &iscsi->socket, rc );
-       intf_shutdown ( &iscsi->control, rc );
-       intf_shutdown ( &iscsi->data, rc );
+       intfs_shutdown ( rc, &iscsi->socket, &iscsi->control, &iscsi->data,
+                        NULL );
 }
 
 /**