diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-12-09 16:39:55 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-12-09 16:39:55 +0000 |
commit | 84dc7ed01d3dde86fc6ec4e84cf204813e5aeaab (patch) | |
tree | 6a428249478b24e2f60858a9d4cb443bb2858daf /sys | |
parent | b192a17a3a2d6279f8b39d513056d29b5c00bad5 (diff) |
Add sizes for free() in the AMD PowerNow! K8 driver.
OK deraadt@, sthen@, visa@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/powernow-k8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/powernow-k8.c b/sys/arch/amd64/amd64/powernow-k8.c index e41e1558337..0183c14c933 100644 --- a/sys/arch/amd64/amd64/powernow-k8.c +++ b/sys/arch/amd64/amd64/powernow-k8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: powernow-k8.c,v 1.26 2017/09/08 05:36:51 deraadt Exp $ */ +/* $OpenBSD: powernow-k8.c,v 1.27 2017/12/09 16:39:54 fcambus Exp $ */ /* * Copyright (c) 2004 Martin Végiard. * Copyright (c) 2004-2005 Bruno Ducrot @@ -380,7 +380,7 @@ k8pnow_acpi_pss_changed(struct acpicpu_pss * pss, int npss) if (needtran) k8pnow_transition(nstate, curs); - free(cstate, M_DEVBUF, 0); + free(cstate, M_DEVBUF, sizeof(*cstate)); k8pnow_current_state = nstate; } @@ -510,5 +510,5 @@ k8_powernow_init(struct cpu_info *ci) setperf_prio = 1; return; } - free(cstate, M_DEVBUF, 0); + free(cstate, M_DEVBUF, sizeof(*cstate)); } |