IB/ipath: deref correct pointer when using kernel SMA
authorBryan O'Sullivan <bos@pathscale.com>
Tue, 23 May 2006 18:32:38 +0000 (11:32 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 23 May 2006 20:29:35 +0000 (13:29 -0700)
commit09b74de9fff056a0a4058a0f14508acba89ea6fc
tree1a935fea2400450afe8984975eea6e22ddf57833
parent3977026462314dfbb237adf6a964d0f683b8e45d
IB/ipath: deref correct pointer when using kernel SMA

At this point, the core QP structure hasn't been initialized, so what's
in there isn't valid.  Get the same information elsewhere.

Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_qp.c