Skip to content
Commit f9a5c358 authored by Nguyen Dinh Phi's avatar Nguyen Dinh Phi Committed by Johannes Berg
Browse files

cfg80211: Fix possible memory leak in function cfg80211_bss_update



When we exceed the limit of BSS entries, this function will free the
new entry, however, at this time, it is the last door to access the
inputed ies, so these ies will be unreferenced objects and cause memory
leak.
Therefore we should free its ies before deallocating the new entry, beside
of dropping it from hidden_list.

Signed-off-by: default avatarNguyen Dinh Phi <phind.uet@gmail.com>
Link: https://lore.kernel.org/r/20210628132334.851095-1-phind.uet@gmail.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0d059964
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment