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)
Sep 24 2024, 3:49 AM
Unknown Object (File)
Sep 20 2024, 9:19 AM
Unknown Object (File)
Sep 19 2024, 8:55 AM
Unknown Object (File)
Sep 17 2024, 1:59 PM
Unknown Object (File)
Aug 30 2024, 1:29 PM
Unknown Object (File)
Aug 20 2024, 6:32 PM
Unknown Object (File)
Aug 19 2024, 3:04 AM
Unknown Object (File)
Aug 8 2024, 12:10 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.