Page MenuHomeFreeBSD

iwn(4): fix mbuf leaks in error paths
ClosedPublic

Authored by avos on Nov 2 2015, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 11:18 PM
Unknown Object (File)
Fri, Apr 26, 11:18 PM
Unknown Object (File)
Fri, Apr 26, 11:18 PM
Unknown Object (File)
Fri, Apr 26, 9:27 PM
Unknown Object (File)
Thu, Apr 4, 7:21 PM
Unknown Object (File)
Mar 4 2024, 2:44 AM
Unknown Object (File)
Feb 5 2024, 4:08 AM
Unknown Object (File)
Dec 25 2023, 2:16 PM
Subscribers

Details

Summary
  • Fix mbuf leaks in iwn_raw_xmit() and iwn_xmit_task() (regression since rS288178).
  • Check IWN_FLAG_RUNNING flag under lock.
  • Remove m->m_pkthdr.rcvif initialization (fixed in rS283994 ?).
  • Enclose some values in return statements into parentheses.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to iwn(4): fix mbuf leaks in error paths.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.

I'm reviewing/testing this one now.

adrian edited edge metadata.

Looks fine! Did you test it on anything?

This revision is now accepted and ready to land.Nov 5 2015, 1:59 AM
In D4069#85524, @adrian wrote:

Looks fine! Did you test it on anything?

m->m_pkthdr.rcvif = (void *) ni;

is already set on other devices/drivers.

Other changes look trivial (but not tested).

Looks fine: i'm running it. Commit away!

This revision was automatically updated to reflect the committed changes.