usnic: fix SEGV when ibv_create_ah fails
If ibv_create_ah fails, we will not initialize the `endpoint->proc`. Reviewed-by: Jeff Squyres <jsquyres@cisco.com> cmr=v1.7.5:ticket=trac:4253 This commit was SVN r30840. The following Trac tickets were found above: Ticket 4253 --> https://svn.open-mpi.org/trac/ompi/ticket/4253
Этот коммит содержится в:
родитель
a54f53f242
Коммит
90d68730f1
@ -13,7 +13,7 @@
|
||||
* reserved.
|
||||
* Copyright (c) 2007 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -122,8 +122,10 @@ static void endpoint_destruct(mca_btl_base_endpoint_t* endpoint)
|
||||
|
||||
/* release owning proc */
|
||||
proc = endpoint->endpoint_proc;
|
||||
proc->proc_endpoints[endpoint->endpoint_proc_index] = NULL;
|
||||
OBJ_RELEASE(proc);
|
||||
if (NULL != proc) {
|
||||
proc->proc_endpoints[endpoint->endpoint_proc_index] = NULL;
|
||||
OBJ_RELEASE(proc);
|
||||
}
|
||||
|
||||
free(endpoint->endpoint_rx_frag_info);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user