提交 4c355005 编写于 作者: M Mike Marciniszyn 提交者: Roland Dreier

IB/qib: Fix failure of compliance test C14-024#06_LocalPortNum

Commit 3236b2d4 ("IB/qib: MADs with misset M_Keys should return
failure") introduced a return code assignment that unfortunately
introduced an unconditional exit for the routine due to missing braces.

This patch adds the braces to correct the original patch.
Reviewed-by: NDean Luick <dean.luick@intel.com>
Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 fea7a08a
...@@ -471,11 +471,12 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, ...@@ -471,11 +471,12 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
if (port_num != port) { if (port_num != port) {
ibp = to_iport(ibdev, port_num); ibp = to_iport(ibdev, port_num);
ret = check_mkey(ibp, smp, 0); ret = check_mkey(ibp, smp, 0);
if (ret) if (ret) {
ret = IB_MAD_RESULT_FAILURE; ret = IB_MAD_RESULT_FAILURE;
goto bail; goto bail;
} }
} }
}
dd = dd_from_ibdev(ibdev); dd = dd_from_ibdev(ibdev);
/* IB numbers ports from 1, hdw from 0 */ /* IB numbers ports from 1, hdw from 0 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册