|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright(c) 2015, 2016 Intel Corporation.
|
|
|
|
|
|
+ * Copyright(c) 2015 - 2018 Intel Corporation.
|
|
*
|
|
*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
* redistributing this file, you may do so under either license.
|
|
@@ -503,7 +503,7 @@ int hfi1_make_ud_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
|
|
u32 lid;
|
|
u32 lid;
|
|
|
|
|
|
ps->s_txreq = get_txreq(ps->dev, qp);
|
|
ps->s_txreq = get_txreq(ps->dev, qp);
|
|
- if (IS_ERR(ps->s_txreq))
|
|
|
|
|
|
+ if (!ps->s_txreq)
|
|
goto bail_no_tx;
|
|
goto bail_no_tx;
|
|
|
|
|
|
if (!(ib_rvt_state_ops[qp->state] & RVT_PROCESS_NEXT_SEND_OK)) {
|
|
if (!(ib_rvt_state_ops[qp->state] & RVT_PROCESS_NEXT_SEND_OK)) {
|