diff options
author | Dave Airlie <[email protected]> | 2011-03-10 12:01:43 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-03-10 12:01:43 +1000 |
commit | 9b7f3776359640d452697f3a487a345820abebf0 (patch) | |
tree | 749a04747b85b9577f2eb8332d86e1604e8fb6b5 /src/gallium/winsys/r600/drm | |
parent | f6ca4a304bf920ea6913b08638fb8eb3e020d446 (diff) |
r600: don't close fd on failed load
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 <[email protected]>
Diffstat (limited to 'src/gallium/winsys/r600/drm')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_drm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c index cd0aa318be5..c081abb4dcd 100644 --- 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; } |