summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-12-05 19:32:06 +0000
committerjhb <jhb@FreeBSD.org>2016-12-05 19:32:06 +0000
commit06ef384ea25e715b6298d9b8c00d690ae229511c (patch)
tree56b7f9d375c4206a9e1a07641617929cc72a0f04
parentc36bd48bfa33d9e25c1facdb189d511135855031 (diff)
downloadFreeBSD-src-06ef384ea25e715b6298d9b8c00d690ae229511c.zip
FreeBSD-src-06ef384ea25e715b6298d9b8c00d690ae229511c.tar.gz
MFC 305433:
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.
-rw-r--r--sys/dev/cxgbe/tom/t4_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/tom/t4_connect.c b/sys/dev/cxgbe/tom/t4_connect.c
index ff53f85..3524011 100644
--- a/sys/dev/cxgbe/tom/t4_connect.c
+++ b/sys/dev/cxgbe/tom/t4_connect.c
@@ -332,7 +332,7 @@ t4_connect(struct toedev *tod, struct socket *so, struct rtentry *rt,
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);
OpenPOWER on IntegriCloud