Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2016 23:27:59 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r309376 - stable/11/sys/ofed/drivers/infiniband/core
Message-ID:  <201612012327.uB1NRxt5083119@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612012327.uB1NRxt5083119>