Skip to content

Commit

Permalink
Merge branch 'linux-3.17' of git://anongit.freedesktop.org/git/nouvea…
Browse files Browse the repository at this point in the history
…u/linux-2.6 into drm-fixes

single fix for nouveau.

* 'linux-3.17' of git://anongit.freedesktop.org/git/nouveau/linux-2.6:
  drm/nouveau/core: don't leak oclass type bits to user
  • Loading branch information
Dave Airlie committed Sep 4, 2014
2 parents 3aacfda + 2acc868 commit 68c78bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/nouveau/core/core/parent.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ nouveau_parent_lclass(struct nouveau_object *parent, u32 *lclass, int size)
sclass = nv_parent(parent)->sclass;
while (sclass) {
if (++nr < size)
lclass[nr] = sclass->oclass->handle;
lclass[nr] = sclass->oclass->handle & 0xffff;
sclass = sclass->sclass;
}

Expand All @@ -96,7 +96,7 @@ nouveau_parent_lclass(struct nouveau_object *parent, u32 *lclass, int size)
if (engine && (oclass = engine->sclass)) {
while (oclass->ofuncs) {
if (++nr < size)
lclass[nr] = oclass->handle;
lclass[nr] = oclass->handle & 0xffff;
oclass++;
}
}
Expand Down

0 comments on commit 68c78bd

Please sign in to comment.