]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlwifi: handle DMA mapping failures
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Nov 2012 08:29:17 +0000 (09:29 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Jan 2013 03:33:52 +0000 (03:33 +0000)
commitefd6621c748efd652b53ac6e718915bbbdca645e
treec7ba672d6fc195eba3af5f1205a00a40b200248a
parent2e1ab4c280688604c7f3db6c75c1ef6ffeac60b2
iwlwifi: handle DMA mapping failures

commit 7c34158231b2eda8dcbd297be2bb1559e69cb433 upstream.

The RX replenish code doesn't handle DMA mapping failures,
which will cause issues if there actually is a failure. This
was reported by Shuah Khan who found a DMA mapping framework
warning ("device driver failed to check map error").

Reported-by: Shuah Khan <shuah.khan@hp.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[bwh: Backported to 3.2:
 - Adjust filename, context, indentation
 - Use bus(trans) instead of trans where necessary
 - Use hw_params(trans).rx_page_order instead of trans_pcie->rx_page_order]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c