Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177117
b: refs/heads/master
c: 4293fdc
h: refs/heads/master
i:
  177115: f6b6883
v: v3
  • Loading branch information
Frank Zago authored and Roland Dreier committed Dec 9, 2009
1 parent f8ab3ee commit 3c17abe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5dec39474fac3458ad6a649eab8cabfc977ae87
refs/heads/master: 4293fdc115e1e4f83dcb9ec6cbd3a54c563835f0
7 changes: 5 additions & 2 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3554,8 +3554,10 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
u32 counter;
u32 total_payload_length;

if (nesqp->ibqp_state > IB_QPS_RTS)
return -EINVAL;
if (nesqp->ibqp_state > IB_QPS_RTS) {
err = -EINVAL;
goto out;
}

spin_lock_irqsave(&nesqp->lock, flags);

Expand Down Expand Up @@ -3618,6 +3620,7 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,

spin_unlock_irqrestore(&nesqp->lock, flags);

out:
if (err)
*bad_wr = ib_wr;
return err;
Expand Down

0 comments on commit 3c17abe

Please sign in to comment.