IB/mlx5: Fix data validation in mlx5_ib_alloc_ucontext
authorHaggai Abramovsky <hagaya@mellanox.com>
Thu, 14 Jan 2016 17:12:56 +0000 (19:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 21 Jan 2016 17:01:08 +0000 (12:01 -0500)
commitdfbee8598d24668b882bcc97d28d5108441cc88a
treefa0658b0b454eb0d4d6b1999ec60a3c27a439ca8
parent2deeb4772971e56d5bdac0bd3375d5eadaa827fd
IB/mlx5: Fix data validation in mlx5_ib_alloc_ucontext

The wrong buffer size was passed to ib_is_udata_cleared.

Signed-off-by: Haggai Abramovsky <hagaya@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c