Re: [PATCH] klogd core

From: Martin Schulze <joey_at_infodrom.org>
Date: Fri, 4 Jul 2008 16:16:31 +0200

Sean Young wrote:
> With /proc/kallsyms disabled in the kernel, klogd crashes. fclose(NULL) is
> executed.

Hmbf! Do you know since which version?

> --- ksym_mod.c.orig 2008-07-04 14:43:39.000000000 +0100
> +++ ksym_mod.c 2008-07-04 14:43:48.000000000 +0100
> @@ -189,7 +189,6 @@
> else
> Syslog(LOG_ERR, "Error loading kernel symbols " \
> "- %s\n", strerror(errno));
> - fclose(ksyms);
> return(0);
> }

It would be better to test if ksyms is NULL (or not resp.).

Regards,

        Joey

-- 
Linux - the choice of a GNU generation.
Received on Fri Jul 04 2008 - 16:16:31 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 04 2008 - 16:17:05 CEST