]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: Guard against null cm_id in dump_ep/qp
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 20 Jan 2017 07:02:01 +0000 (12:32 +0530)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 19:44:01 +0000 (14:44 -0500)
commitdb911d5b334b41291f0eb57d7ead954ad29c32a2
tree67ecee97d3a982347a1af384e94702bd627c73d8
parenta146a0141615b2082e9a03677a46e892db8bb381
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.

Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/device.c