lkml.org 
[lkml]   [2011]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[069/104] USB: whci-hcd: fix endian conversion in qset_clear()
    3.1-stable review patch.  If anyone has any objections, please let me know.

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

    From: Dan Carpenter <dan.carpenter@oracle.com>

    commit 8746c83d538cab273d335acb2be226d096f4a5af upstream.

    qset->qh.link is an __le64 field and we should be using cpu_to_le64()
    to fill it.

    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/usb/host/whci/qset.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/usb/host/whci/qset.c
    +++ b/drivers/usb/host/whci/qset.c
    @@ -124,7 +124,7 @@ void qset_clear(struct whc *whc, struct
    {
    qset->td_start = qset->td_end = qset->ntds = 0;

    - qset->qh.link = cpu_to_le32(QH_LINK_NTDS(8) | QH_LINK_T);
    + qset->qh.link = cpu_to_le64(QH_LINK_NTDS(8) | QH_LINK_T);
    qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK;
    qset->qh.err_count = 0;
    qset->qh.scratch[0] = 0;



    \
     
     \ /
      Last update: 2011-12-07 17:33    [W:0.019 / U:30.744 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site