|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright(c) 2015-2017 Intel Corporation.
|
|
|
+ * Copyright(c) 2015-2018 Intel Corporation.
|
|
|
*
|
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
|
* redistributing this file, you may do so under either license.
|
|
@@ -4836,7 +4836,7 @@ static int hfi1_process_opa_mad(struct ib_device *ibdev, int mad_flags,
|
|
|
int ret;
|
|
|
int pkey_idx;
|
|
|
int local_mad = 0;
|
|
|
- u32 resp_len = 0;
|
|
|
+ u32 resp_len = in_wc->byte_len - sizeof(*in_grh);
|
|
|
struct hfi1_ibport *ibp = to_iport(ibdev, port);
|
|
|
|
|
|
pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY);
|