]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2ce8a541fae4302fc8235486dace31f40fa629f
treeeb95b5a5f8eecee6b8f0b0aacb5da14a05d514fa
parent93fa963b6f51a45783eb90159460ef91365a5c62
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