On Sun, Jul 24, 2011 at 9:43 PM,  <rpear...@systemfabricworks.com> wrote:
> +static u64 rxe_dma_map_single(struct ib_device *dev,
> +                           void *cpu_addr, size_t size,
> +                           enum dma_data_direction direction)
> +{
> +     BUG_ON(!valid_dma_direction(direction));
> +     return (u64) (uintptr_t) cpu_addr;
> +}

In the above function execution can continue without crashing even if
the DMA direction argument is invalid. So please use WARN_ON() instead
of BUG_ON() in the functions in source file rxe_dma.c.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to