mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
dc3155c1be
commit
5aaa3bc3b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue