On 2020-01-19 17:17, Justin Capella wrote:
Is the same address always used for "struct ath10k *ar = hw->priv" --
even when driver is stopped / bus errors are encountered? If not this
could potentially be use after free scenario?
"struct ath10k *ar = hw->priv" will changed only if rmmod
ath10k_sdio/ath10k_pci/ath10k_ahb...
it will not changed for "ifconfig wlan0 down"
Most code tries to protect the ->state with the config mutex, might
need to do that here too
yes, I added conf_mutex to protected the ar->state change in
v2:https://patchwork.kernel.org/patch/11340881/