From: fcambus Date: Wed, 27 Dec 2017 17:41:54 +0000 (+0000) Subject: Add size for free() in the AMD K10/K11 pstate driver. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f21e7ccd059c30a06fa30d71acf3953ed902b21f;p=openbsd Add size for free() in the AMD K10/K11 pstate driver. It was done already on i386, but not on amd64. OK brynet@ --- diff --git a/sys/arch/amd64/amd64/k1x-pstate.c b/sys/arch/amd64/amd64/k1x-pstate.c index dfa6fb175b8..cb79e0cc6a8 100644 --- a/sys/arch/amd64/amd64/k1x-pstate.c +++ b/sys/arch/amd64/amd64/k1x-pstate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: k1x-pstate.c,v 1.9 2017/09/08 05:36:51 deraadt Exp $ */ +/* $OpenBSD: k1x-pstate.c,v 1.10 2017/12/27 17:41:54 fcambus Exp $ */ /* * Copyright (c) 2011 Bryan Steele * @@ -197,5 +197,5 @@ k1x_init(struct cpu_info *ci) setperf_prio = 1; return; } - free(cstate, M_DEVBUF, 0); + free(cstate, M_DEVBUF, sizeof(*cstate)); }