summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2017-11-20 10:37:18 +0100
committerLuca Coelho <luciano.coelho@intel.com>2017-11-25 16:11:20 +0100
commitf3402d6d8eb084f6c2563dee1a09385b7c0ea2d5 (patch)
tree8913e1c6fa8eb0bcd9382a8e6b9e473b21bb1f54 /drivers
parentiwlwifi: mvm: fix packet injection (diff)
downloadlinux-f3402d6d8eb084f6c2563dee1a09385b7c0ea2d5.tar.xz
linux-f3402d6d8eb084f6c2563dee1a09385b7c0ea2d5.zip
iwlwifi: pcie: fix erroneous "Read failed message"
Current pci dumping code code is always falling to the error path, resulting with a constant "Read failed" message, also for the successful reads. Fixes: a5c932e41fdd ("iwlwifi: pcie: dump registers when HW becomes inaccessible") Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/pcie/trans.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c
index b7a51603465b..3dee95e6a475 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c
@@ -166,6 +166,7 @@ static void iwl_trans_pcie_dump_regs(struct iwl_trans *trans)
print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32,
4, buf, i, 0);
}
+ goto out;
err_read:
print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, 4, buf, i, 0);