mirror of https://github.com/ipxe/ipxe.git
[iscsi] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
d9886f1961
commit
a29bdb3a92
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue