diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2010-01-07 02:59:31 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-08 13:11:55 +1000 |
commit | 059d233f9c1183ed2f59d631e4daf486060e880d (patch) | |
tree | 840e214254502a26a882a5503badc94b8ec1a682 /drivers/gpu | |
parent | d0269ed8580b492df75dafb011dc51a1390bf200 (diff) |
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>
Diffstat (limited to 'drivers/gpu')
-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 0d79577c157..607241c6a8a 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 */ |