diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-25 04:49:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-25 04:49:11 +0000 |
commit | 76c305d927ae75f5822574ce71845532118aa800 (patch) | |
tree | 34a5e4f5b9d1662eeee582c39e146b5c7c8b47ea /sys/dev/isa/spkr.c | |
parent | f34c90ee8215bfbf1078f2ff522579ba6265eed6 (diff) |
add size to free
Diffstat (limited to 'sys/dev/isa/spkr.c')
-rw-r--r-- | sys/dev/isa/spkr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/spkr.c b/sys/dev/isa/spkr.c index 435a048e655..d8a54c45425 100644 --- a/sys/dev/isa/spkr.c +++ b/sys/dev/isa/spkr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spkr.c,v 1.19 2015/02/10 22:50:12 miod Exp $ */ +/* $OpenBSD: spkr.c,v 1.20 2015/11/25 04:49:10 tedu Exp $ */ /* $NetBSD: spkr.c,v 1.1 1998/04/15 20:26:18 drochner Exp $ */ /* @@ -451,7 +451,7 @@ spkrclose(dev_t dev, int flags, int mode, struct proc *p) return (ENXIO); else { tone(0, 0); - free(spkr_inbuf, M_DEVBUF, 0); + free(spkr_inbuf, M_DEVBUF, DEV_BSIZE); spkr_active = 0; } return (0); |