IB/mlx5: Fix overflow check in IB_WR_FAST_REG_MR
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:15 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:42:59 +0000 (14:42 -0800)
commit9641b74ebee65320fa52172995d6df12b641caa5
tree4fa500b2bad8980e5f5111cd1c82f2bb1150234f
parent746b5583c1a48a837f4891adaff5e09d61b204a6
IB/mlx5: Fix overflow check in IB_WR_FAST_REG_MR

Make sure not to overflow when reading the page list from struct
ib_fast_reg_page_list.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/qp.c