artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e432967
)
Add size for free() in the AMD K10/K11 pstate driver.
author
fcambus
<fcambus@openbsd.org>
Wed, 27 Dec 2017 17:41:54 +0000
(17:41 +0000)
committer
fcambus
<fcambus@openbsd.org>
Wed, 27 Dec 2017 17:41:54 +0000
(17:41 +0000)
It was done already on i386, but not on amd64.
OK brynet@
sys/arch/amd64/amd64/k1x-pstate.c
patch
|
blob
|
history
diff --git
a/sys/arch/amd64/amd64/k1x-pstate.c
b/sys/arch/amd64/amd64/k1x-pstate.c
index
dfa6fb1
..
cb79e0c
100644
(file)
--- 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 <brynet@gmail.com>
*
@@
-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)
);
}