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 <airlied@redhat.com>
This commit is contained in:
parent
f6ca4a304b
commit
9b7f377635
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue