NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/58201 CVS commit: src/sys/dev/acpi





On Apr 26, 2024, at 4:35 PM, Malte Dehling <mdehling%gmail.com@localhost> wrote:

The following reply was made to PR kern/58201; it has been noted by GNATS.

The call to sysmon_envsys_register() will trigger an initial refresh and
the refresh function looks at sc->sc_last which is uninitialized since
acpibat_update_status() hasn't been called yet.


It is zeroed, so it should return immediately, right?
Perhaps I should add a memset to it since acpi_bat.c
zero's some of the fields explicitly anyway (but it should not need to).

https://nxr.netbsd.org/xref/src/sys/kern/subr_autoconf.c#1591

christos


Home | Main Index | Thread Index | Old Index