]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: avoid dma unmap/remap in crash dump
authorJohannes Berg <johannes.berg@intel.com>
Thu, 19 Aug 2021 15:40:28 +0000 (18:40 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Aug 2021 20:37:06 +0000 (23:37 +0300)
commit32524794fac6c4d4f02e8113f3a5a6f417e6db16
tree7871e6efa8519c300ed9579e62cb2877512775f3
parent8a098eda7689271bde070c83351f5b6aad111591
iwlwifi: pcie: avoid dma unmap/remap in crash dump

DMA-API debug code pointed out that in this code path we
never check the return value of dma_map_page(), which could
fail.

However, we don't really even want to unmap/remap, we just
want to ensure that we can actually access the last version
of the data that the (now-dead) device may have written, so
only need to dma_sync_single_for_cpu() instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210819183728.5987f35883a2.I2d9ea5ecc69a5e5947b546fb15f33363a0595651@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c