Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37187
b: refs/heads/master
c: 10aeb0e
h: refs/heads/master
i:
  37185: 2e46211
  37183: beeb425
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 28, 2006
1 parent cebf5e5 commit e1767b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dae5bff2e8e4699744e782a6e7605ad18d1240e
refs/heads/master: 10aeb0e6d8823c1cccf9edc8401c848745c128be
4 changes: 4 additions & 0 deletions trunk/drivers/infiniband/hw/ipath/ipath_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,10 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
struct ib_reth *reth;
int header_in_data;

/* Validate the SLID. See Ch. 9.6.1.5 */
if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid))
goto done;

/* Check for GRH */
if (!has_grh) {
ohdr = &hdr->u.oth;
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/infiniband/hw/ipath/ipath_uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ void ipath_uc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
struct ib_reth *reth;
int header_in_data;

/* Validate the SLID. See Ch. 9.6.1.5 */
if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid))
goto done;

/* Check for GRH */
if (!has_grh) {
ohdr = &hdr->u.oth;
Expand Down

0 comments on commit e1767b1

Please sign in to comment.