tags 496288 + patch
thanks
On Tue, Sep 23, 2008 at 06:27:52AM +0200, Cedric Blancher wrote:
> Package: cpufreqd
> Version: 2.3.3-2
> Followup-For: Bug #496288
>
>
> Very similar problem here.
>
> ~$ sudo /etc/init.d/cpufreqd start
> Starting CPU Frequency daemon: cpufreqd.
> cpufreqd[13194]: segfault at 0 ip b7f58df7 sp bf9deb60 error 4 in
> cpufreqd_acpi.so[b7f56000+5000]
the attached patch fixes this bug, please confirm.
--
mattia
:wq!
Index: src/cpufreqd_acpi.c
===================================================================
RCS file: /cvsroot/cpufreqd/sources2/src/cpufreqd_acpi.c,v
retrieving revision 1.8
diff -u -r1.8 cpufreqd_acpi.c
--- src/cpufreqd_acpi.c 31 Aug 2008 01:17:25 -0000 1.8
+++ src/cpufreqd_acpi.c 1 Oct 2008 12:22:23 -0000
@@ -246,8 +246,8 @@
/* read `clsname` devices */
devs = sysfs_get_class_devices(cls);
- if (!cls) {
- clog(LOG_INFO, "class '%s' not found (%s)\n", clsname,
+ if (!devs) {
+ clog(LOG_INFO, "class device '%s' not found (%s)\n", clsname,
strerror(errno));
sysfs_close_class(cls);
return -1;