svn commit: r304838 - head/sys/ofed/drivers/infiniband/core

Navdeep Parhar np at FreeBSD.org
Fri Aug 26 08:25:29 UTC 2016


Author: np
Date: Fri Aug 26 08:25:28 2016
New Revision: 304838
URL: https://svnweb.freebsd.org/changeset/base/304838

Log:
  Do not free an uninitialized pointer on soaccept failure in the iWARP
  connection manager.
  
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/ofed/drivers/infiniband/core/iwcm.c

Modified: head/sys/ofed/drivers/infiniband/core/iwcm.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/iwcm.c	Fri Aug 26 07:49:23 2016	(r304837)
+++ head/sys/ofed/drivers/infiniband/core/iwcm.c	Fri Aug 26 08:25:28 2016	(r304838)
@@ -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);


More information about the svn-src-head mailing list