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)
Thu, Jun 5, 1:05 PM
Unknown Object (File)
Wed, Jun 4, 7:06 PM
Unknown Object (File)
Sat, May 31, 7:48 PM
Unknown Object (File)
Sat, May 31, 4:27 PM
Unknown Object (File)
May 8 2025, 11:25 PM
Unknown Object (File)
Apr 20 2025, 4:41 PM
Unknown Object (File)
Apr 19 2025, 8:50 AM
Unknown Object (File)
Apr 19 2025, 8:50 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 Skipped
Unit
Tests Skipped

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.