diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_tx.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_tx.c b/drivers/infiniband/hw/qib/qib_tx.c index af30232b6831..7f36454c225e 100644 --- a/drivers/infiniband/hw/qib/qib_tx.c +++ b/drivers/infiniband/hw/qib/qib_tx.c | |||
@@ -170,7 +170,7 @@ static int find_ctxt(struct qib_devdata *dd, unsigned bufn) | |||
170 | void qib_disarm_piobufs_set(struct qib_devdata *dd, unsigned long *mask, | 170 | void qib_disarm_piobufs_set(struct qib_devdata *dd, unsigned long *mask, |
171 | unsigned cnt) | 171 | unsigned cnt) |
172 | { | 172 | { |
173 | struct qib_pportdata *ppd, *pppd[dd->num_pports]; | 173 | struct qib_pportdata *ppd, *pppd[QIB_MAX_IB_PORTS]; |
174 | unsigned i; | 174 | unsigned i; |
175 | unsigned long flags; | 175 | unsigned long flags; |
176 | 176 | ||