projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8b55b
)
radeon: check relocs before deref
author
Dave Airlie
<airlied@linux.ie>
Thu, 22 Jan 2009 11:38:35 +0000
(21:38 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 22 Jan 2009 11:38:35 +0000
(21:38 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index f09031e83bb51dc58a93a1ab670131d7b7c28850..b9751248280cd7486f361bc400cdbd3db9693a7c 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@
-337,8
+337,9
@@
static int cs_emit(struct radeon_cs *cs)
static void inline cs_free_reloc(void *relocs_p)
{
- struct cs_reloc_legacy *relocs = relocs_p;
- free(relocs->indices);
+ struct cs_reloc_legacy *relocs = relocs_p;
+ if (relocs)
+ free(relocs->indices);
}
static int cs_destroy(struct radeon_cs *cs)