david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-09 12:16:15 +00:00
parent d9886f1961
commit a29bdb3a92
1 changed files with 2 additions and 4 deletions

View 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 );
}
/**