iw_cxgb4: Take clip reference before starting IPv6 listen
authorHariprasad S <hariprasad@chelsio.com>
Wed, 13 Jan 2016 04:33:14 +0000 (10:03 +0530)
committerDoug Ledford <dledford@redhat.com>
Tue, 19 Jan 2016 20:23:40 +0000 (15:23 -0500)
commit28de1f74374da4f0f628b14bbccb07e5637d00b1
tree2ad898046677e638f16490c5d6720322cf9f863c
parent4275a5b20043005ec6ceee67c1d352e798b0f5a1
iw_cxgb4: Take clip reference before starting IPv6 listen

The h/w is designed in such a way that, if you do anything IPv6
related, a valid clip entry must be there. So take clip reference
before creating IPv6 listening servers, and then if we fail to
create server, release the clip entry.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c