summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorMichael Brown2017-03-09 13:16:15 +0100
committerMichael Brown2017-03-09 13:16:15 +0100
commita29bdb3a92a5df6e30b76e74caa6e72462b3d767 (patch)
tree8bfb29f10a12f22a64e386d4e98b9f713070f732 /src/net
parent[block] Retry any SAN device operation (diff)
downloadipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.tar.gz
ipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.tar.xz
ipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.zip
[iscsi] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tcp/iscsi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c
index d6f80084..51d09ddc 100644
--- a/src/net/tcp/iscsi.c
+++ b/src/net/tcp/iscsi.c
@@ -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 );
}
/**