]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix check of number of entries in create CQ
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:13 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:42:58 +0000 (14:42 -0800)
commit9ea9e84e76e3fcab6f2cb398e823a552dd92519d
tree4cc3e7d5e75a5ae0e35682a340effe5ee6d278f0
parent0e7fb4bc05a12a48fc03da20d018ff3786b7d5dc
IB/mlx5: Fix check of number of entries in create CQ

Verify that the value is non negative before rounding up to power of 2.

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