IB/qib: Avoid variable-length array
authorRalph Campbell <ralph.campbell@qlogic.com>
Thu, 3 Jun 2010 00:21:07 +0000 (00:21 +0000)
committerRoland Dreier <rolandd@cisco.com>
Mon, 19 Jul 2010 20:21:24 +0000 (13:21 -0700)
commitcc323b2aaa3921c4eeec309ff64256b0c43ca752
tree9f07d591a8baf9a267897a3c2a87859f54c27ce2
parent589643be6693c46fbc54bae77745f336c8ed4bcc
IB/qib: Avoid variable-length array

Rather than use a variable size array allocation on the stack,
define a constant for the maximum array size possible.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_tx.c