projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df31ef4
)
drm/nouveau: fix nouveau_i2c_find bounds checking
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Wed, 17 Feb 2010 18:04:01 +0000
(19:04 +0100)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 25 Feb 2010 05:09:09 +0000
(15:09 +1000)
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_i2c.c
b/drivers/gpu/drm/nouveau/nouveau_i2c.c
index
70e994d
..
f0162c4
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_i2c.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_i2c.c
@@
-256,7
+256,7
@@
nouveau_i2c_find(struct drm_device *dev, int index)
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nvbios *bios = &dev_priv->VBIOS;
- if (index > DCB_MAX_NUM_I2C_ENTRIES)
+ if (index >
=
DCB_MAX_NUM_I2C_ENTRIES)
return NULL;
if (!bios->bdcb.dcb.i2c[index].chan) {