We try to find a compressed vmlinux image ending with either .gz, bz2 or
xz. Stop searching if we find one. Otherwise we will leak a file descriptor
for an earlier one we opened.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-06-16 Mark Wielaard <mark@klomp.org>
+
+ * linux-kernel-modules.c (try_kernel_name): Don't try other
+ compressed kernels if we already found an compressed image.
+
2020-05-09 Mark Wielaard <mark@klomp.org>
* find-debuginfo.c (dwfl_standard_find_debuginfo): Return failure
if (fd < 0)
for (size_t i = 0;
- i < sizeof vmlinux_suffixes / sizeof vmlinux_suffixes[0];
+ i < sizeof vmlinux_suffixes / sizeof vmlinux_suffixes[0] && fd < 0;
++i)
{
char *zname;