svn commit: r309376 - stable/11/sys/ofed/drivers/infiniband/core

John Baldwin jhb at FreeBSD.org
Thu Dec 1 23:28:00 UTC 2016


Author: jhb
Date: Thu Dec  1 23:27:59 2016
New Revision: 309376
URL: https://svnweb.freebsd.org/changeset/base/309376

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

Modified:
  stable/11/sys/ofed/drivers/infiniband/core/iwcm.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/infiniband/core/iwcm.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/core/iwcm.c	Thu Dec  1 22:22:19 2016	(r309375)
+++ stable/11/sys/ofed/drivers/infiniband/core/iwcm.c	Thu Dec  1 23:27:59 2016	(r309376)
@@ -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-stable-11 mailing list