cxgbe/tom: Fix potential leak in t4_aiotx_process_job.
The mbuf allocated could be a chain and must be freed with m_freem. Reviewed by: jhb@ MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29579
This commit is contained in:
parent
9edaceca81
commit
bf5057691b
@ -2201,8 +2201,7 @@ t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job)
|
||||
job->aio_error = (void *)(intptr_t)error;
|
||||
aiotx_free_job(job);
|
||||
}
|
||||
if (m != NULL)
|
||||
m_free(m);
|
||||
m_freem(m);
|
||||
SOCKBUF_LOCK(sb);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user