svn commit: r305433 - head/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Mon Sep 5 19:37:48 UTC 2016
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);
More information about the svn-src-all
mailing list