log failures (typically malloc) of iscsi_create_context during reconnect
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -258,6 +258,11 @@ int iscsi_reconnect(struct iscsi_context *old_iscsi)
|
||||
try_again:
|
||||
|
||||
iscsi = iscsi_create_context(old_iscsi->initiator_name);
|
||||
if (!iscsi) {
|
||||
ISCSI_LOG(old_iscsi, 2, "failed to create new context for reconnection");
|
||||
return -1;
|
||||
}
|
||||
|
||||
iscsi->is_reconnecting = 1;
|
||||
|
||||
iscsi_set_targetname(iscsi, old_iscsi->target_name);
|
||||
|
||||
Reference in New Issue
Block a user