projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5024c54
)
drm/nouveau/bios: check for null script pointers in parser
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 4 Aug 2011 03:57:33 +0000
(13:57 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 20 Sep 2011 06:10:12 +0000
(16:10 +1000)
Allows us to be lazy elsewhere...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bios.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_bios.c
b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 58d8c85b85d1f3945e5e8ca965c3f649208d368c..528fb6087814d67a18e5252b436ce512c4970806 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_bios.c
@@
-3771,6
+3771,10
@@
parse_init_table(struct nvbios *bios, uint16_t offset, struct init_exec *iexec)
int count = 0, i, ret;
uint8_t id;
+ /* catch NULL script pointers */
+ if (offset == 0)
+ return 0;
+
/*
* Loop until INIT_DONE causes us to break out of the loop
* (or until offset > bios length just in case... )