]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ehca: Fix device registration
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Mon, 2 Oct 2006 21:52:17 +0000 (14:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 2 Oct 2006 21:52:17 +0000 (14:52 -0700)
commit9bb70db850a2ff4c11f90e0289f0c909086125f6
tree9e6dd929c0b3ccee9be45c554a596a8370c83318
parent936bb96fdab3b62083801f751208b08033d12031
IB/ehca: Fix device registration

Move the call to ib_register_device() later, since a device should not
be registered until it is completely read to be used.  This fixes
crashes that occur if an upper-layer driver such as IPoIB is loaded
before the ehca module.

Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_main.c