search for: 6da314c

Displaying 1 result from an estimated 1 matches for "6da314c".

Did you mean: 6ba34c
2012 Dec 20
1
[PATCH] drm/nouveau: fix ramht wraparound
...y: Marcin Slusarz <marcin.slusarz at gmail.com> Cc: stable at vger.kernel.org --- drivers/gpu/drm/nouveau/core/core/ramht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/core/core/ramht.c b/drivers/gpu/drm/nouveau/core/core/ramht.c index 86a6404..6da314c 100644 --- a/drivers/gpu/drm/nouveau/core/core/ramht.c +++ b/drivers/gpu/drm/nouveau/core/core/ramht.c @@ -59,7 +59,7 @@ nouveau_ramht_insert(struct nouveau_ramht *ramht, int chid, } co += 8; - if (co >= nv_gpuobj(ramht)->size) + if (co + 8 > nv_gpuobj(ramht)->size) co = 0...