summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-05-31 03:38:01 +0000
committerderaadt <deraadt@openbsd.org>2006-05-31 03:38:01 +0000
commitce3a0b248fbe44ae8538f32c7c5555d9567de385 (patch)
treeaf0fc09d347d979345db1b5658d1eedbd44c3230
parentWhen allocating a buffer, use the supplied length if the requested (diff)
downloadwireguard-openbsd-ce3a0b248fbe44ae8538f32c7c5555d9567de385.tar.xz
wireguard-openbsd-ce3a0b248fbe44ae8538f32c7c5555d9567de385.zip
fix tree
-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 104e99672d4..edca0d0091e 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ch.c,v 1.26 2006/05/31 03:01:44 beck Exp $ */
+/* $OpenBSD: ch.c,v 1.27 2006/05/31 03:38:01 deraadt Exp $ */
/* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */
/*
@@ -570,7 +570,7 @@ ch_usergetelemstatus(sc, cesr)
* that the first one can fit into 1k.
*/
data = (caddr_t)malloc(1024, M_DEVBUF, M_WAITOK);
- error = ch_getelemstatus(sc, sc->sc_firsts[chet], 1, data,
+ error = ch_getelemstatus(sc, sc->sc_firsts[chet], 1, data, 1024,
want_voltags);
if (error)
goto done;