lkml.org 
[lkml]   [2014]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.13 062/198] IB/ipath: Translate legacy diagpkt into newer extended diagpkt
    Date
    3.13.11.5 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Dennis Dalessandro <dennis.dalessandro@intel.com>

    commit 7e6d3e5c70f13874fb06e6b67696ed90ce79bd48 upstream.

    This patch addresses an issue where the legacy diagpacket is sent in
    from the user, but the driver operates on only the extended
    diagpkt. This patch specifically initializes the extended diagpkt
    based on the legacy packet.

    Reported-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
    Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
    Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
    Signed-off-by: Roland Dreier <roland@purestorage.com>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    drivers/infiniband/hw/ipath/ipath_diag.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/infiniband/hw/ipath/ipath_diag.c b/drivers/infiniband/hw/ipath/ipath_diag.c
    index e2f9a51..45802e9 100644
    --- a/drivers/infiniband/hw/ipath/ipath_diag.c
    +++ b/drivers/infiniband/hw/ipath/ipath_diag.c
    @@ -346,6 +346,10 @@ static ssize_t ipath_diagpkt_write(struct file *fp,
    ret = -EFAULT;
    goto bail;
    }
    + dp.len = odp.len;
    + dp.unit = odp.unit;
    + dp.data = odp.data;
    + dp.pbc_wd = 0;
    } else {
    ret = -EINVAL;
    goto bail;
    --
    1.9.1


    \
     
     \ /
      Last update: 2014-07-16 09:41    [W:4.479 / U:0.476 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site