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)
Fri, May 3, 9:16 AM
Unknown Object (File)
Sat, Apr 27, 6:36 AM
Unknown Object (File)
Fri, Apr 26, 6:08 AM
Unknown Object (File)
Fri, Apr 26, 3:51 AM
Unknown Object (File)
Fri, Apr 26, 3:17 AM
Unknown Object (File)
Sat, Apr 20, 10:39 PM
Unknown Object (File)
Apr 19 2024, 11:22 AM
Unknown Object (File)
Apr 19 2024, 11:21 AM

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