mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
cxgbe/tom: Plug mbuf leak.
MFC after: 3 days
This commit is contained in:
parent
bf014f0bab
commit
e1e0aa8d3e
1 changed files with 3 additions and 1 deletions
|
|
@ -559,8 +559,10 @@ t4_syncache_respond(struct toedev *tod, void *arg, struct mbuf *m)
|
|||
struct tcphdr *th = (void *)(ip + 1);
|
||||
|
||||
wr = (struct wrqe *)atomic_readandclear_ptr(&synqe->wr);
|
||||
if (wr == NULL)
|
||||
if (wr == NULL) {
|
||||
m_freem(m);
|
||||
return (EALREADY);
|
||||
}
|
||||
|
||||
bzero(&to, sizeof(to));
|
||||
tcp_dooptions(&to, (void *)(th + 1), (th->th_off << 2) - sizeof(*th),
|
||||
|
|
|
|||
Loading…
Reference in a new issue