diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-08-19 18:40:28 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2021-08-26 23:37:06 +0300 |
commit | 59a6ee97e0d4d8f9f3f47df1b82d850ce8e0f0b1 (patch) | |
tree | 7871e6efa8519c300ed9579e62cb2877512775f3 /drivers/rtc/rtc-88pm860x.c | |
parent | 40063f602868aaeab5afe7f84237e3d95801680f (diff) |
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>
Diffstat (limited to 'drivers/rtc/rtc-88pm860x.c')
0 files changed, 0 insertions, 0 deletions