mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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@suse.cz> Link: http://lkml.kernel.org/r/1371628383-11216-1-git-send-email-jslaby@suse.cz Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org
This commit is contained in:
parent
17858ca65e
commit
062f487190
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue