summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ac97.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/ac97.c')
-rw-r--r--sys/dev/ic/ac97.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c
index c3429f50f97..7c0bc2dbee7 100644
--- a/sys/dev/ic/ac97.c
+++ b/sys/dev/ic/ac97.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.c,v 1.80 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: ac97.c,v 1.81 2015/08/28 00:03:53 deraadt Exp $ */
/*
* Copyright (c) 1999, 2000 Constantine Sapuntzakis
@@ -815,7 +815,7 @@ ac97_attach(struct ac97_host_if *host_if)
as->host_if = host_if;
if ((error = host_if->attach(host_if->arg, &as->codec_if))) {
- free(as, M_DEVBUF, 0);
+ free(as, M_DEVBUF, sizeof(*as));
return (error);
}