projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ca4a3
)
r600: don't close fd on failed load
author
Dave Airlie
<airlied@redhat.com>
Thu, 10 Mar 2011 02:01:43 +0000
(12:01 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 10 Mar 2011 02:01:43 +0000
(12:01 +1000)
This fd gets passed in from outside, closing it causes the X.org server
to crap out when the driver doesn't identify the chipset.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/r600/drm/r600_drm.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/r600/drm/r600_drm.c
b/src/gallium/winsys/r600/drm/r600_drm.c
index cd0aa318be519633a444cea03df7641bbef89d21..c081abb4dcdf9c0e56381e9a5b0513584afb13f1 100644
(file)
--- a/
src/gallium/winsys/r600/drm/r600_drm.c
+++ b/
src/gallium/winsys/r600/drm/r600_drm.c
@@
-363,9
+363,6
@@
struct radeon *radeon_decref(struct radeon *radeon)
if (radeon->bomgr)
r600_bomgr_destroy(radeon->bomgr);
- if (radeon->fd >= 0)
- drmClose(radeon->fd);
-
free(radeon);
return NULL;
}