Page MenuHomeFreeBSD

net80211: amrr_init: change order of commands
ClosedPublic

Authored by bz on Feb 5 2024, 2:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 1:02 PM
Unknown Object (File)
Sat, Feb 7, 11:22 PM
Unknown Object (File)
Sat, Jan 31, 2:49 AM
Unknown Object (File)
Jan 10 2026, 12:40 AM
Unknown Object (File)
Dec 17 2025, 3:44 AM
Unknown Object (File)
Dec 5 2025, 3:28 PM
Unknown Object (File)
Dec 4 2025, 12:30 AM
Unknown Object (File)
Nov 27 2025, 4:02 PM

Details

Summary

First run the KASSERT before trying to do the free operation.
Better for reporting and debugging.
Add a guard setting the value to NULL afterwards. NULL pointers
are a lot easier to test for.

Note: we should really just change the amrr local ref to atomics.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable