]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Fix multi-Florida HCA host panic on reboot
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
commit3be72f39384da6f5c8f0d42d4e52975a832510c7
tree14eb055d1e816e494d29db014d4c3b0c0fec6de2
parent57ecda22b01bbc98192ab4eed118e1301a692aae
IB/qib: Fix multi-Florida HCA host panic on reboot

Add check when setting configured contexts that the value does not
exceed the number of contexts allocated for the card.  If the value
exceeds the already allocated count, set it to what is already
allocated.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_init.c