From: Jiri Slaby Date: Wed, 19 Jun 2013 07:53:03 +0000 (+0200) Subject: x86/boot: Close opened file descriptor X-Git-Tag: v3.12-rc1~539^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=062f487190c8126209391ccb720a4ec943fd4a57;p=kernel%2Fkernel-generic.git 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 Link: http://lkml.kernel.org/r/1371628383-11216-1-git-send-email-jslaby@suse.cz Signed-off-by: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org --- 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;