]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mad: Check and handle potential DMA mapping errors
authorYan Burman <yanb@mellanox.com>
Tue, 11 Mar 2014 12:41:47 +0000 (14:41 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 1 Apr 2014 17:36:07 +0000 (10:36 -0700)
commit9b61206acb4d98ae3ce59b0846f93a8bb7383a5a
tree1fb3e6b76d98229c876c2964ab7435994b87716b
parent6e661c317b4f3a72d69aaf7aa810e5e62f43e9b7
IB/mad: Check and handle potential DMA mapping errors

Running with DMA_API_DEBUG enabled and not checking for DMA mapping
errors triggers a kernel stack trace with "DMA-API: device driver
failed to check map error" message.  Add these checks to the MAD
module, both to be be more robust and also eliminate these
false-positive stack traces.

Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/mad.c