From a29bdb3a92a5df6e30b76e74caa6e72462b3d767 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 9 Mar 2017 12:16:15 +0000 Subject: [PATCH] [iscsi] Use intfs_shutdown() when shutting down multiple interfaces Signed-off-by: Michael Brown --- src/net/tcp/iscsi.c | 6 ++---- 1 file 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 ); } /**