Messages in this thread Patch in this message | | | Subject | [PATCH 32 of 33] IB/ipath - check that a UD work request's address handle is valid | Date | Thu, 15 Mar 2007 14:45:16 -0700 | From | Bryan O'Sullivan <> |
| |
# HG changeset patch # User Robert Walsh <robert.walsh@qlogic.com> # Date 1173994466 25200 # Node ID c3b5b279bc90e5758da2ac382cbff4ee0245e84b # Parent 9f6468cddf59f26e087d100980a11ee9f1af4f56 IB/ipath - check that a UD work request's address handle is valid
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
diff -r 9f6468cddf59 -r c3b5b279bc90 drivers/infiniband/hw/ipath/ipath_ud.c --- a/drivers/infiniband/hw/ipath/ipath_ud.c Thu Mar 15 14:34:25 2007 -0700 +++ b/drivers/infiniband/hw/ipath/ipath_ud.c Thu Mar 15 14:34:26 2007 -0700 @@ -305,6 +305,11 @@ int ipath_post_ud_send(struct ipath_qp * if (!(ib_ipath_state_ops[qp->state] & IPATH_PROCESS_SEND_OK)) { ret = 0; + goto bail; + } + + if (wr->wr.ud.ah->pd != qp->ibqp.pd) { + ret = -EPERM; goto bail; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |