summaryrefslogtreecommitdiff
path: root/radeontool.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-05 18:44:04 +1000
committerDave Airlie <airlied@redhat.com>2008-07-05 18:44:04 +1000
commit680cfa58ad81228545159bc235a0cf1d5db2a2df (patch)
tree4364bfd2b913c7acca8d8480734c5257a9545d6b /radeontool.c
parentbc3e726514aac7fc0edb058e7502afeafe785f1e (diff)
make fatal error exit
Diffstat (limited to 'radeontool.c')
-rw-r--r--radeontool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/radeontool.c b/radeontool.c
index eb6b1d9..0848ba5 100644
--- a/radeontool.c
+++ b/radeontool.c
@@ -40,6 +40,8 @@ unsigned char * volatile ctrl_mem;
static void fatal(char *why)
{
fprintf(stderr,why);
+ pci_system_cleanup();
+ exit(-1);
}
static unsigned int radeon_get(unsigned long offset, const char *name)