IB/mthca: Fix off-by-one in mthca SRQ creation
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 9 Oct 2006 16:06:32 +0000 (18:06 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Oct 2006 19:50:38 +0000 (12:50 -0700)
commit2cbe19d48af198f0070470a2d836828de24fe163
tree4e6c27a49dc2aa5a4cf3c026b8cdcbfe9b15be72
parent73fbe8be73512b8a3ffa3d20c9d7f531af99679c
IB/mthca: Fix off-by-one in mthca SRQ creation

All HCAs (not just mem-free) need a spare SRQ entry, so bump srq->max
by 1 in all cases.

Noted by Jack Morgenstein <jackm@mellanox.co.il>

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c