[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-062f487190c8126209391ccb720a4ec943fd4a57@git.kernel.org>
Date: Wed, 19 Jun 2013 11:42:02 -0700
From: tip-bot for Jiri Slaby <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
tglx@...utronix.de, jslaby@...e.cz
Subject: [tip:x86/boot] x86/boot: Close opened file descriptor
Commit-ID: 062f487190c8126209391ccb720a4ec943fd4a57
Gitweb: http://git.kernel.org/tip/062f487190c8126209391ccb720a4ec943fd4a57
Author: Jiri Slaby <jslaby@...e.cz>
AuthorDate: Wed, 19 Jun 2013 09:53:03 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 19 Jun 2013 13:32:19 +0200
x86/boot: Close opened file descriptor
During build we open a file, read that but do not close it. Fix
that by sticking fclose() at the right place.
Signed-off-by: Jiri Slaby <jslaby@...e.cz>
Link: http://lkml.kernel.org/r/1371628383-11216-1-git-send-email-jslaby@suse.cz
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: x86@...nel.org
---
arch/x86/boot/tools/build.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c
index 94c5446..c941d6a 100644
--- a/arch/x86/boot/tools/build.c
+++ b/arch/x86/boot/tools/build.c
@@ -243,6 +243,7 @@ static void parse_zoffset(char *fname)
c = fread(buf, 1, sizeof(buf) - 1, file);
if (ferror(file))
die("read-error on `zoffset.h'");
+ fclose(file);
buf[c] = 0;
p = (char *)buf;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists