RDMA/nes: Add max_cqe check to nes_create_cq()
authorChien Tung <chien.tin.tung@intel.com>
Wed, 9 Dec 2009 23:21:56 +0000 (15:21 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Dec 2009 23:21:56 +0000 (15:21 -0800)
commit5924aea6e26712cd372aa23ed432d4cefbb050d2
tree8ce43324eefa06bb4db6ee414f2ea221cc2c0097
parent75742c630ed552ad963948c9f3e596e96eed7a9f
RDMA/nes: Add max_cqe check to nes_create_cq()

Add a check to nes_create_cq() to return -EINVAL if creating a CQ with
depth > max_cqe (32766).

Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_verbs.c