lkml.org 
[lkml]   [2011]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[17/55] drm/radeon/kms: fix bad shift in atom iio table parser
    2.6.38-stable review patch.  If anyone has any objections, please let us know.

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

    From: Alex Deucher <alexdeucher@gmail.com>

    commit 8e461123f28e6b17456225e70eb834b3b30d28bb upstream.

    Noticed by Patrick Lowry.

    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/gpu/drm/radeon/atom.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    --- a/drivers/gpu/drm/radeon/atom.c
    +++ b/drivers/gpu/drm/radeon/atom.c
    @@ -135,7 +135,7 @@ static uint32_t atom_iio_execute(struct
    case ATOM_IIO_MOVE_INDEX:
    temp &=
    ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
    - CU8(base + 2));
    + CU8(base + 3));
    temp |=
    ((index >> CU8(base + 2)) &
    (0xFFFFFFFF >> (32 - CU8(base + 1)))) << CU8(base +
    @@ -145,7 +145,7 @@ static uint32_t atom_iio_execute(struct
    case ATOM_IIO_MOVE_DATA:
    temp &=
    ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
    - CU8(base + 2));
    + CU8(base + 3));
    temp |=
    ((data >> CU8(base + 2)) &
    (0xFFFFFFFF >> (32 - CU8(base + 1)))) << CU8(base +
    @@ -155,7 +155,7 @@ static uint32_t atom_iio_execute(struct
    case ATOM_IIO_MOVE_ATTR:
    temp &=
    ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
    - CU8(base + 2));
    + CU8(base + 3));
    temp |=
    ((ctx->
    io_attr >> CU8(base + 2)) & (0xFFFFFFFF >> (32 -



    \
     
     \ /
      Last update: 2011-04-29 21:09    [W:0.020 / U:0.756 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site