Commit 77e67d5d authored by Dan Carpenter's avatar Dan Carpenter Committed by Miri Korenblit
Browse files

wifi: iwlwifi: fix potential use after free in iwl_mld_remove_link()



This code frees "link" by calling kfree_rcu(link, rcu_head) and then it
dereferences "link" to get the "link->fw_id".  Save the "link->fw_id"
first to avoid a potential use after free.

Fixes: d1e879ec ("wifi: iwlwifi: add iwlmld sub-driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aNKCcKlbSkkS4_gO@stanley.mountain


Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
parent 4ff71af0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment