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>
This commit is contained in:
committed by
Dave Airlie
parent
d0269ed858
commit
059d233f9c
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user