lkml.org 
[lkml]   [2006]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 17 of 23] IB/ipath - validate path_mig_state properly
    Date
    From
    Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>

    diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c
    --- a/drivers/infiniband/hw/ipath/ipath_qp.c Fri Aug 25 11:19:45 2006 -0700
    +++ b/drivers/infiniband/hw/ipath/ipath_qp.c Fri Aug 25 11:19:45 2006 -0700
    @@ -491,7 +491,8 @@ int ipath_modify_qp(struct ib_qp *ibqp,
    goto inval;

    if (attr_mask & IB_QP_PATH_MIG_STATE)
    - if (attr->path_mig_state != IB_MIG_MIGRATED)
    + if (attr->path_mig_state != IB_MIG_MIGRATED &&
    + attr->path_mig_state != IB_MIG_REARM)
    goto inval;

    switch (new_state) {
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-08-25 20:31    [W:3.283 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site