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, Oct 17, 10:36 PM
Unknown Object (File)
Mon, Oct 13, 3:51 AM
Unknown Object (File)
Sat, Sep 27, 8:13 PM
Unknown Object (File)
Sep 18 2025, 7:45 PM
Unknown Object (File)
Sep 17 2025, 7:26 PM
Unknown Object (File)
Sep 17 2025, 5:21 PM
Unknown Object (File)
Sep 17 2025, 11:10 AM
Unknown Object (File)
Aug 22 2025, 1:13 AM
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.