]> git.karo-electronics.de Git - karo-tx-linux.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)
commit2c34e68f426151bc6d16de6a187678f6693c0770
tree1fb3e6b76d98229c876c2964ab7435994b87716b
parent5bdb0f02add5994b0bc17494f4726925ca5d6ba1
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