Skip to content

Commit

Permalink
drm/radeon: mkregtable.c: close a file before exit
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Beregalov <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
alexb0 authored and airlied committed Jan 8, 2010
1 parent d0269ed commit 059d233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/radeon/mkregtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 059d233

Please sign in to comment.