Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2111 (new defect)

Opened 14 years ago

memory leak caused by sta_flush_table() without freeing se_xxx_ie fields

Reported by: Assigned to:
Priority: major Milestone:
Component: madwifi: driver Version: v0.9.3.3
Keywords: Cc:
Patch is attached: 0 Pending: 0


sta_add() may save ies (saveie()) in a newly allocated struct ieee80211_scan_entry. When sta_flush_table() is called to free the structure, no check is performed to free these ie structs. This leads to considerable memory loss, in our case, during active roaming. We see the size-32 entry in slabinfo growing. A fix I have applied that seems to solve our problem is check the ie entries in sta_flush_table() and free any ie structures that are present. We observed the probolem in, but inspection and rudimentary testing shows no fix for the problem in 0.9.4.