Commit 059d233f authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Dave Airlie

drm/radeon: mkregtable.c: close a file before exit

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d0269ed8
...@@ -661,8 +661,10 @@ static int parser_auth(struct table *t, const char *filename) ...@@ -661,8 +661,10 @@ static int parser_auth(struct table *t, const char *filename)
fseek(file, 0, SEEK_SET); fseek(file, 0, SEEK_SET);
/* get header */ /* get header */
if (fgets(buf, 1024, file) == NULL) if (fgets(buf, 1024, file) == NULL) {
fclose(file);
return -1; return -1;
}
/* first line will contain the last register /* first line will contain the last register
* and gpu name */ * and gpu name */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment