Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1fa4252a
Commit
1fa4252a
authored
Jul 17, 2013
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: fix an endian bug in atom table parsing
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
1294d4a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_atombios.c
+1
-1
No files found.
drivers/gpu/drm/radeon/radeon_atombios.c
View file @
1fa4252a
...
@@ -3638,7 +3638,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev,
...
@@ -3638,7 +3638,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev,
p
+=
le16_to_cpu
(
vram_module
->
usModuleSize
);
p
+=
le16_to_cpu
(
vram_module
->
usModuleSize
);
}
}
mclk_range_table
->
num_entries
=
(
u8
)
mclk_range_table
->
num_entries
=
(
u8
)
((
vram_module
->
usModuleSize
-
offsetof
(
ATOM_VRAM_MODULE_V4
,
asMemTiming
))
/
((
le16_to_cpu
(
vram_module
->
usModuleSize
)
-
offsetof
(
ATOM_VRAM_MODULE_V4
,
asMemTiming
))
/
mem_timing_size
);
mem_timing_size
);
p
=
(
u8
*
)
vram_module
->
asMemTiming
;
p
=
(
u8
*
)
vram_module
->
asMemTiming
;
for
(
i
=
0
;
i
<
mclk_range_table
->
num_entries
;
i
++
)
{
for
(
i
=
0
;
i
<
mclk_range_table
->
num_entries
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment