diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2010-01-07 00:59:31 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-08 04:11:55 +0100 |
commit | 059d233f9c1183ed2f59d631e4daf486060e880d (patch) | |
tree | 840e214254502a26a882a5503badc94b8ec1a682 | |
parent | drm/radeon/kms: Make sure we release AGP device if we acquired it (diff) | |
download | linux-059d233f9c1183ed2f59d631e4daf486060e880d.tar.xz linux-059d233f9c1183ed2f59d631e4daf486060e880d.zip |
drm/radeon: mkregtable.c: close a file before exit
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/mkregtable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/mkregtable.c b/drivers/gpu/drm/radeon/mkregtable.c index 0d79577c1576..607241c6a8a9 100644 --- a/drivers/gpu/drm/radeon/mkregtable.c +++ b/drivers/gpu/drm/radeon/mkregtable.c @@ -661,8 +661,10 @@ static int parser_auth(struct table *t, const char *filename) fseek(file, 0, SEEK_SET); /* get header */ - if (fgets(buf, 1024, file) == NULL) + if (fgets(buf, 1024, file) == NULL) { + fclose(file); return -1; + } /* first line will contain the last register * and gpu name */ |