Commit d3fb326f authored by Libor Michalek's avatar Libor Michalek Committed by Linus Torvalds

[PATCH] InfiniBand: add missing break between cases

Add a missing break statement between RC and UD cases in mthca_post_send().
 This fixes a possible oops for protocols that use the RC transport.
Signed-off-by: default avatarLibor Michalek <libor@topspin.com>
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2621c1ff
...@@ -1323,6 +1323,8 @@ int mthca_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, ...@@ -1323,6 +1323,8 @@ int mthca_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
break; break;
} }
break;
case UD: case UD:
((struct mthca_ud_seg *) wqe)->lkey = ((struct mthca_ud_seg *) wqe)->lkey =
cpu_to_be32(to_mah(wr->wr.ud.ah)->key); cpu_to_be32(to_mah(wr->wr.ud.ah)->key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment