projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d13e9c
)
drm/nouveau: fix off-by-one
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 23 Jun 2011 05:47:32 +0000
(15:47 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 23 Jun 2011 06:04:53 +0000
(16:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_object.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_object.c
b/drivers/gpu/drm/nouveau/nouveau_object.c
index
fb57c11
..
159b7c4
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_object.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_object.c
@@
-125,7
+125,7
@@
nouveau_gpuobj_mthd_call2(struct drm_device *dev, int chid,
int ret = -EINVAL;
spin_lock_irqsave(&dev_priv->channels.lock, flags);
- if (chid > 0 && chid < dev_priv->engine.fifo.channels)
+ if (chid >
=
0 && chid < dev_priv->engine.fifo.channels)
chan = dev_priv->channels.ptr[chid];
if (chan)
ret = nouveau_gpuobj_mthd_call(chan, class, mthd, data);