summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-12-01 23:27:59 +0000
committerjhb <jhb@FreeBSD.org>2016-12-01 23:27:59 +0000
commit98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7 (patch)
tree09ccee83d69e743eab427282a02be2c4a3cba5fc
parent1309465ad40a38cf9008f5eb2e56918c7bea3a20 (diff)
downloadFreeBSD-src-98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7.zip
FreeBSD-src-98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7.tar.gz
MFC 304838:
Do not free an uninitialized pointer on soaccept failure in the iWARP connection manager. Sponsored by: Chelsio Communications
-rw-r--r--sys/ofed/drivers/infiniband/core/iwcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ofed/drivers/infiniband/core/iwcm.c b/sys/ofed/drivers/infiniband/core/iwcm.c
index 5a1cc72..3651063 100644
--- a/sys/ofed/drivers/infiniband/core/iwcm.c
+++ b/sys/ofed/drivers/infiniband/core/iwcm.c
@@ -438,6 +438,7 @@ dequeue_socket(struct socket *head)
so->so_state |= SS_NBIO;
SOCK_UNLOCK(so);
ACCEPT_UNLOCK();
+ remote = NULL;
soaccept(so, (struct sockaddr **)&remote);
free(remote, M_SONAME);
OpenPOWER on IntegriCloud