Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253904
b: refs/heads/master
c: 2905544
h: refs/heads/master
v: v3
  • Loading branch information
Emil Velikov authored and Ben Skeggs committed Jun 18, 2011
1 parent 1a18cd1 commit 2e9bd64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0897554cdd9de8a9f6f93d9ba27c7ebfae286158
refs/heads/master: 2905544073f6ec235b44f624c66f52b61221a16c
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ nouveau_perf_init(struct drm_device *dev)
entries = perf[2];
}

if (entries > NOUVEAU_PM_MAX_LEVEL) {
NV_DEBUG(dev, "perf table has too many entries - buggy vbios?\n");
entries = NOUVEAU_PM_MAX_LEVEL;
}

entry = perf + headerlen;
for (i = 0; i < entries; i++) {
struct nouveau_pm_level *perflvl = &pm->perflvl[pm->nr_perflvl];
Expand Down

0 comments on commit 2e9bd64

Please sign in to comment.