Date: Mon, 5 Sep 2016 19:37:47 +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: r305433 - head/sys/dev/cxgbe/tom Message-ID: <201609051937.u85Jblb7044495@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Mon Sep 5 19:37:47 2016 New Revision: 305433 URL: https://svnweb.freebsd.org/changeset/base/305433 Log: cxgbe/t4_tom: toepcb should be all-zero on allocation because the code that cleans up on failure assumes that non-NULL values indicate initialized items. Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/tom/t4_connect.c Modified: head/sys/dev/cxgbe/tom/t4_connect.c ============================================================================== --- head/sys/dev/cxgbe/tom/t4_connect.c Mon Sep 5 18:42:21 2016 (r305432) +++ head/sys/dev/cxgbe/tom/t4_connect.c Mon Sep 5 19:37:47 2016 (r305433) @@ -332,7 +332,7 @@ t4_connect(struct toedev *tod, struct so else DONT_OFFLOAD_ACTIVE_OPEN(ENOTSUP); - toep = alloc_toepcb(vi, -1, -1, M_NOWAIT); + toep = alloc_toepcb(vi, -1, -1, M_NOWAIT | M_ZERO); if (toep == NULL) DONT_OFFLOAD_ACTIVE_OPEN(ENOMEM);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609051937.u85Jblb7044495>