]> bbs.cooldavid.org Git - net-next-2.6.git/commit
RDMA/cxgb4: Don't use null ep ptr
authorSteve Wise <swise@opengridcomputing.com>
Fri, 10 Sep 2010 16:14:48 +0000 (11:14 -0500)
committerRoland Dreier <rolandd@cisco.com>
Tue, 28 Sep 2010 17:46:29 +0000 (10:46 -0700)
commitaf93fb5dcc6b1cba5fd0861d349b3f9c93144bc0
tree9fde36683bb652635ed8d8a45abd0178a2c11803
parentc8e081a1bf11c5cbac5f2f9f53c040be61d7b29e
RDMA/cxgb4: Don't use null ep ptr

In c4iw_modify_qp() error path, only use qhp->ep if ep is not already set.
Otherwise qhp->ep can be NULL and we crash.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb4/qp.c