aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2016-08-26 08:25:28 +0000
committerNavdeep Parhar <np@FreeBSD.org>2016-08-26 08:25:28 +0000
commita5234e8ccb2cfd62eb050bffd36b7f6903833875 (patch)
tree852a17a5f1428a21f8ad32b7a9a1f00885691bd2 /sys/ofed
parent91843cf34e9955901de89b47bf3f976b8f5855ca (diff)
downloadsrc-a5234e8ccb2cfd62eb050bffd36b7f6903833875.tar.gz
src-a5234e8ccb2cfd62eb050bffd36b7f6903833875.zip
Do not free an uninitialized pointer on soaccept failure in the iWARP
connection manager. Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=304838
Diffstat (limited to 'sys/ofed')
-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 5a1cc72e80c3..3651063c8c81 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);