From f21e7ccd059c30a06fa30d71acf3953ed902b21f Mon Sep 17 00:00:00 2001 From: fcambus Date: Wed, 27 Dec 2017 17:41:54 +0000 Subject: [PATCH] Add size for free() in the AMD K10/K11 pstate driver. It was done already on i386, but not on amd64. OK brynet@ --- sys/arch/amd64/amd64/k1x-pstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.20.1