svn commit: r309557 - in stable: 10/sys/dev/cxgbe/tom 11/sys/dev/cxgbe/tom
John Baldwin
jhb at FreeBSD.org
Mon Dec 5 19:32:07 UTC 2016
Author: jhb
Date: Mon Dec 5 19:32:06 2016
New Revision: 309557
URL: https://svnweb.freebsd.org/changeset/base/309557
Log:
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.
Modified:
stable/10/sys/dev/cxgbe/tom/t4_connect.c
Directory Properties:
stable/10/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/11/sys/dev/cxgbe/tom/t4_connect.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/10/sys/dev/cxgbe/tom/t4_connect.c
==============================================================================
--- stable/10/sys/dev/cxgbe/tom/t4_connect.c Mon Dec 5 19:16:46 2016 (r309556)
+++ stable/10/sys/dev/cxgbe/tom/t4_connect.c Mon Dec 5 19:32:06 2016 (r309557)
@@ -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-stable
mailing list