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
a845fff8
Commit
a845fff8
authored
Oct 04, 2010
by
Roy Spliet
Committed by
Ben Skeggs
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: fix thinkos in mem timing table recordlen check
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ca8e7c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mem.c
+7
-5
No files found.
drivers/gpu/drm/nouveau/nouveau_mem.c
View file @
a845fff8
...
...
@@ -35,6 +35,8 @@
#include "drm_sarea.h"
#include "nouveau_drv.h"
#define MIN(a,b) a < b ? a : b
/*
* NV10-NV40 tiling helpers
*/
...
...
@@ -717,14 +719,14 @@ nouveau_mem_timing_init(struct drm_device *dev)
tUNK_19
=
1
;
tUNK_20
=
0
;
tUNK_21
=
0
;
switch
(
recordlen
)
{
case
0x
21
:
switch
(
MIN
(
recordlen
,
21
)
)
{
case
21
:
tUNK_21
=
entry
[
21
];
case
0x
20
:
case
20
:
tUNK_20
=
entry
[
20
];
case
0x
19
:
case
19
:
tUNK_19
=
entry
[
19
];
case
0x
18
:
case
18
:
tUNK_18
=
entry
[
18
];
default:
tUNK_0
=
entry
[
0
];
...
...
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