Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233319
b: refs/heads/master
c: e917fd3
h: refs/heads/master
i:
  233317: 817f19f
  233315: 572e53c
  233311: 939e60f
v: v3
  • Loading branch information
Jesper Juhl authored and Dave Airlie committed Feb 13, 2011
1 parent 61516b5 commit af75856
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9417bdd4c6b1b92a21608c07e83afa419c7bb62
refs/heads/master: e917fd39eb35e5b2c464e67a80e759f3eb468e48
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/radeon/mkregtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,10 @@ static int parser_auth(struct table *t, const char *filename)
last_reg = strtol(last_reg_s, NULL, 16);

do {
if (fgets(buf, 1024, file) == NULL)
if (fgets(buf, 1024, file) == NULL) {
fclose(file);
return -1;
}
len = strlen(buf);
if (ftell(file) == end)
done = 1;
Expand All @@ -685,6 +687,7 @@ static int parser_auth(struct table *t, const char *filename)
fprintf(stderr,
"Error matching regular expression %d in %s\n",
r, filename);
fclose(file);
return -1;
} else {
buf[match[0].rm_eo] = 0;
Expand Down

0 comments on commit af75856

Please sign in to comment.