diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-08-25 14:24:42 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:37 -0400 |
commit | ca4ce383acfb05b8035453cdbbfd4f8ae36c7a69 (patch) | |
tree | c18fe8810822fe7a6cb01d66ce7ab05a7f29264e /drivers/infiniband | |
parent | fc8cf8cdfc3ce328c577b18ebcd60a5595f2a283 (diff) |
IB/ipath: validate path_mig_state properly
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_qp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c index 502d555fdf37..77391886d2f8 100644 --- a/drivers/infiniband/hw/ipath/ipath_qp.c +++ b/drivers/infiniband/hw/ipath/ipath_qp.c | |||
@@ -491,7 +491,8 @@ int ipath_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, | |||
491 | goto inval; | 491 | goto inval; |
492 | 492 | ||
493 | if (attr_mask & IB_QP_PATH_MIG_STATE) | 493 | if (attr_mask & IB_QP_PATH_MIG_STATE) |
494 | if (attr->path_mig_state != IB_MIG_MIGRATED) | 494 | if (attr->path_mig_state != IB_MIG_MIGRATED && |
495 | attr->path_mig_state != IB_MIG_REARM) | ||
495 | goto inval; | 496 | goto inval; |
496 | 497 | ||
497 | switch (new_state) { | 498 | switch (new_state) { |