summaryrefslogtreecommitdiff
path: root/sys/scsi/ch.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-08-23 01:55:40 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-08-23 01:55:40 +0000
commit4b5b04caa51224807497c8676c77c6603cc7674a (patch)
tree3697287574dbdb6e2949f98a759c364560030921 /sys/scsi/ch.c
parentca41afcc91917c280328266073e0c74b7fada6e8 (diff)
add some sizes to free. looked over by deraadt
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r--sys/scsi/ch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index 177b3030885..79086cba67a 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ch.c,v 1.50 2015/03/14 03:38:52 jsg Exp $ */
+/* $OpenBSD: ch.c,v 1.51 2015/08/23 01:55:39 tedu Exp $ */
/* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */
/*
@@ -614,7 +614,7 @@ ch_usergetelemstatus(struct ch_softc *sc,
if (data != NULL)
dma_free(data, size);
if (user_data != NULL)
- free(user_data, M_DEVBUF, 0);
+ free(user_data, M_DEVBUF, udsize);
return (error);
}