summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modinst
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-03-15 19:13:25 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2012-06-01 16:11:10 (GMT)
commit30dc0d0fe5d08396dbdaa2d70972149131340960 (patch)
tree7c875693d5e31a18ebe635612503be876472c96e /scripts/Makefile.modinst
parentfb21affa49204acd409328415b49bfe90136653c (diff)
downloadlinux-fsl-qoriq-30dc0d0fe5d08396dbdaa2d70972149131340960.tar.xz
x86, efi: Only close open files in error path
The loop at the 'close_handles' label in handle_ramdisks() should be using 'i', which represents the number of initrd files that were successfully opened, not 'nr_initrds' which is the number of initrd= arguments passed on the command line. Currently, if we execute the loop to close all file handles and we failed to open any initrds we'll try to call the close function on a garbage pointer, causing the machine to hang. Cc: Matthew Garrett <mjg@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> Link: http://lkml.kernel.org/r/1331907517-3985-2-git-send-email-matt@console-pimps.org Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'scripts/Makefile.modinst')
0 files changed, 0 insertions, 0 deletions