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)
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

Simple merge