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, Nov 28, 3:31 AM
Unknown Object (File)
Mon, Nov 24, 5:17 AM
Unknown Object (File)
Sun, Nov 23, 5:04 PM
Unknown Object (File)
Thu, Nov 20, 9:53 PM
Unknown Object (File)
Thu, Nov 20, 9:28 PM
Unknown Object (File)
Thu, Nov 20, 9:26 PM
Unknown Object (File)
Thu, Nov 20, 9:18 PM
Unknown Object (File)
Tue, Nov 18, 6:19 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.