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
This commit is contained in:
Mark Johnston 2021-05-26 09:49:49 -04:00
parent d62e1ecba0
commit 71776d6719

View File

@ -1330,11 +1330,8 @@ oce_tso_setup(POCE_SOFTC sc, struct mbuf **mpp)
} }
m = m_pullup(m, total_len); m = m_pullup(m, total_len);
if (!m)
return NULL;
*mpp = m; *mpp = m;
return m; return m;
} }
#endif /* INET6 || INET */ #endif /* INET6 || INET */