diff options
author | Michael Brown <mcb30@ipxe.org> | 2017-03-09 12:16:15 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2017-03-09 12:16:15 +0000 |
commit | a29bdb3a92a5df6e30b76e74caa6e72462b3d767 (patch) | |
tree | 8bfb29f10a12f22a64e386d4e98b9f713070f732 /src/net | |
parent | d9886f1961f9970b4354442e84b98727b69cd73a (diff) | |
download | ipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.zip ipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.tar.gz ipxe-a29bdb3a92a5df6e30b76e74caa6e72462b3d767.tar.bz2 |
[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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index d6f8008..51d09dd 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 ); } /** |