aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_rc.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_rc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_rc.c b/drivers/infiniband/hw/ipath/ipath_rc.c
index 52caa2edf5a..898f996513f 100644
--- a/drivers/infiniband/hw/ipath/ipath_rc.c
+++ b/drivers/infiniband/hw/ipath/ipath_rc.c
@@ -1320,6 +1320,10 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
1320 struct ib_reth *reth; 1320 struct ib_reth *reth;
1321 int header_in_data; 1321 int header_in_data;
1322 1322
1323 /* Validate the SLID. See Ch. 9.6.1.5 */
1324 if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid))
1325 goto done;
1326
1323 /* Check for GRH */ 1327 /* Check for GRH */
1324 if (!has_grh) { 1328 if (!has_grh) {
1325 ohdr = &hdr->u.oth; 1329 ohdr = &hdr->u.oth;