RDMA/cxgb4: Use dst parameter in import_ep()
authorSteve Wise <swise@opengridcomputing.com>
Fri, 27 Apr 2012 15:24:33 +0000 (10:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:42 +0000 (15:15 +0800)
commita4dd32e712e3e8ac25b7875f018616d60badcce5
treec980d73e822563f52724c96e4406d6a6aa7204c2
parent3b86beb67adb9eea10b3391ec3ebf64bdf0053ed
RDMA/cxgb4: Use dst parameter in import_ep()

commit bd61baaf59669accae2720799394a51fecabe5d9 upstream.

Function import_ep() is incorrectly using ep->dst instead of the dst
ptr passed in.  This causes a crash when accepting new rdma connections
becase ep->dst is not initialized yet.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/cxgb4/cm.c