projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ee5b78
)
r300g: fix use of uninitialised variables.
author
Dave Airlie
<airlied@redhat.com>
Sun, 27 Dec 2009 06:13:41 +0000
(16:13 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 27 Dec 2009 06:13:41 +0000
(16:13 +1000)
These buffers were getting dereferenced later.
src/gallium/winsys/drm/radeon/core/radeon_drm.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/drm/radeon/core/radeon_drm.c
b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
index dec7c065036d374bd4e3bac5ea6fe6667144a150..05194fc52a2d1ad7371515ae349c545ef3eb44c0 100644
(file)
--- a/
src/gallium/winsys/drm/radeon/core/radeon_drm.c
+++ b/
src/gallium/winsys/drm/radeon/core/radeon_drm.c
@@
-206,7
+206,7
@@
static boolean radeon_shared_handle_from_texture(struct drm_api *api,
int retval, fd;
struct drm_gem_flink flink;
struct radeon_pipe_buffer* radeon_buffer;
- struct pipe_buffer *buffer;
+ struct pipe_buffer *buffer
= NULL
;
if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) {
return FALSE;
@@
-239,7
+239,7
@@
static boolean radeon_local_handle_from_texture(struct drm_api *api,
unsigned *stride,
unsigned *handle)
{
- struct pipe_buffer *buffer;
+ struct pipe_buffer *buffer
= NULL
;
if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) {
return FALSE;
}