]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: avoid potential PNVM leaks
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jan 2021 11:05:49 +0000 (13:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 13:52:48 +0000 (15:52 +0200)
commit006373c8bdb066f000e6b4bac7471ad8ba0fe60f
tree21986fc55d7994cb768d1297dc5216a8d09ea9b4
parent4082c6573f3db977f0f4609881c37ffb1e9ec46a
iwlwifi: pcie: avoid potential PNVM leaks

If we erroneously try to set the PNVM data again after it has
already been set, we could leak the old DMA memory. Avoid that
and warn, we shouldn't be doing this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 7616de674b0a ("iwlwifi: read and parse PNVM file")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210115130252.929c2d680429.I086b9490e6c005f3bcaa881b617e9f61908160f3@changeid
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c