diff options
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 5d11f8601599..4f5dd66da39d 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c | |||
@@ -1305,7 +1305,8 @@ err: | |||
1305 | 1305 | ||
1306 | /* disassociate the LLP connection */ | 1306 | /* disassociate the LLP connection */ |
1307 | qhp->attr.llp_stream_handle = NULL; | 1307 | qhp->attr.llp_stream_handle = NULL; |
1308 | ep = qhp->ep; | 1308 | if (!ep) |
1309 | ep = qhp->ep; | ||
1309 | qhp->ep = NULL; | 1310 | qhp->ep = NULL; |
1310 | qhp->attr.state = C4IW_QP_STATE_ERROR; | 1311 | qhp->attr.state = C4IW_QP_STATE_ERROR; |
1311 | free = 1; | 1312 | free = 1; |