Skip to content

Commit f3402d6

Browse files
sara-slucacoelho
authored andcommitted
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>
1 parent b13f43a commit f3402d6

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie

1 file changed

+1
-0
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/trans.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static void iwl_trans_pcie_dump_regs(struct iwl_trans *trans)
166166
print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32,
167167
4, buf, i, 0);
168168
}
169+
goto out;
169170

170171
err_read:
171172
print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, 4, buf, i, 0);

0 commit comments

Comments
 (0)