diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2021-05-26 13:49:49 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2021-05-26 14:42:36 +0000 |
| commit | 71776d67198fadd7d96937c9bdd22063636b132b (patch) | |
| tree | 134aa03bb8bc466a0665c094f3a571a907a54b4f | |
| parent | d62e1ecba07b2acee37e019778087f0f55d977d1 (diff) | |
| download | src-71776d67198fadd7d96937c9bdd22063636b132b.tar.gz src-71776d67198fadd7d96937c9bdd22063636b132b.zip | |
oce: Fix handling of m_pullup() errors in oce_tso_setup()
m_pullup() frees the input mbuf chain upon a failure. Set *mpp to NULL
in this case to ensure that the caller does not free the chain again.
PR: 224928
Submitted by: Lv Yunlong <lylgood@foxmail.com> (original version)
MFC after: 1 week
| -rw-r--r-- | sys/dev/oce/oce_if.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/oce/oce_if.c b/sys/dev/oce/oce_if.c index 7c9b71089081..271c35015a9f 100644 --- a/sys/dev/oce/oce_if.c +++ b/sys/dev/oce/oce_if.c @@ -1330,11 +1330,8 @@ oce_tso_setup(POCE_SOFTC sc, struct mbuf **mpp) } m = m_pullup(m, total_len); - if (!m) - return NULL; *mpp = m; return m; - } #endif /* INET6 || INET */ |
