projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0269ed
)
drm/radeon: mkregtable.c: close a file before exit
author
Alexander Beregalov
<a.beregalov@gmail.com>
Wed, 6 Jan 2010 23:59:31 +0000
(
02:59
+0300)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 8 Jan 2010 03:11:55 +0000
(13:11 +1000)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/mkregtable.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/mkregtable.c
b/drivers/gpu/drm/radeon/mkregtable.c
index 0d79577c15761759f6634eb636b78c8b711989a8..607241c6a8a9a80d2f477c4dbc5da69eb7cd5952 100644
(file)
--- 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 */