]> git.openfabrics.org - ~aditr/compat-rdma.git/commit
iw_cxgb4: Guard against null cm_id in dump_ep/qp vofed-4.8-rc2
authorPotnuri Bharat Teja <bharat@chelsio.com>
Mon, 24 Apr 2017 16:51:17 +0000 (09:51 -0700)
committerSteve Wise <swise@opengridcomputing.com>
Mon, 24 Apr 2017 16:51:17 +0000 (09:51 -0700)
commit785e7bf5d83f71fb9e51ca10d7b1a65f901034bf
treea13082d8ad0c3bff03e350bc9396eefc4c758335
parent0b1ed8035b5c536a39f589b1f7d917d2de0754c4
iw_cxgb4: Guard against null cm_id in dump_ep/qp

Endpoints that are aborting can have already dereferenced the
cm_id and set ep->com.cm_id to NULL.  So guard against that in
dump_ep() and dump_qp().

Also create a common function for setting up ip address pointers
since the same logic is needed in several places.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
linux-next-cherry-picks/0052-iw_cxgb4-Guard-against-null-cm_id-in-dump_ep.patch [new file with mode: 0644]