mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
drm/radeon/kms: fix bad shift in atom iio table parser
commit 8e461123f2 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>
This commit is contained in:
parent
d9a176cac9
commit
e8ab09aaea
|
|
@ -126,7 +126,7 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
|
|||
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 +
|
||||
|
|
@ -136,7 +136,7 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
|
|||
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 +
|
||||
|
|
@ -146,7 +146,7 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
|
|||
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 -
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user