IB/ipath: fix for crash on module unload, if cfgports < portcnt
authorBryan O'Sullivan <bos@pathscale.com>
Fri, 25 Aug 2006 18:24:28 +0000 (11:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:27 +0000 (15:22 -0700)
commit8e280d94e29af67035637fb957daba7ae0d23583
treeeb95b5a5f8eecee6b8f0b0aacb5da14a05d514fa
parentc27fef26271d352b5546c33239edeb0dcb4fc0cc
IB/ipath: fix for crash on module unload, if cfgports < portcnt

Allocate enough pointers for all possible ports, to avoid problems in
cleanup/unload.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_init_chip.c