diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2005-07-28 18:19:50 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2005-07-28 18:19:50 +0000 |
| commit | 50d0e47aa79a610b8937454481bafb5547402283 (patch) | |
| tree | 4ee9ecc1baa93433ee6a3d9a8703e2ea8cfa4f86 /sys/dev/acpica | |
| parent | e770771a78e7e5d2f522af3ec53a1b4c3f116528 (diff) | |
Notes
Diffstat (limited to 'sys/dev/acpica')
| -rw-r--r-- | sys/dev/acpica/acpi_battery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_battery.c b/sys/dev/acpica/acpi_battery.c index 995b380853df7..21423bf880e2a 100644 --- a/sys/dev/acpica/acpi_battery.c +++ b/sys/dev/acpica/acpi_battery.c @@ -143,9 +143,9 @@ acpi_battery_get_battinfo(device_t dev, struct acpi_battinfo *battinfo) * Allocate storage for all _BST data, their derived battinfo data, * and the current battery's _BIF data. */ - bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK); - bi = malloc(devcount * sizeof(*bi), M_TEMP, M_WAITOK); - bif = malloc(sizeof(*bif), M_TEMP, M_WAITOK); + bst = malloc(devcount * sizeof(*bst), M_TEMP, M_WAITOK | M_ZERO); + bi = malloc(devcount * sizeof(*bi), M_TEMP, M_WAITOK | M_ZERO); + bif = malloc(sizeof(*bif), M_TEMP, M_WAITOK | M_ZERO); /* * Pass 1: for each battery that is present and valid, get its status, |
