Date: Fri, 26 Aug 2016 08:25:28 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r304838 - head/sys/ofed/drivers/infiniband/core Message-ID: <201608260825.u7Q8PSI2011440@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608260825.u7Q8PSI2011440>