summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-11-18 12:50:48 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-11-18 12:50:48 +0000
commite3de5af6cff5580ccfb6cee0c3352739207b5183 (patch)
tree9422a970899a41f5f93d4fefd147117384e4b8b9 /sys/dev/usb/ugen.c
parentd90803b819d1d744a9165881b17a285629eac68c (diff)
downloadFreeBSD-src-e3de5af6cff5580ccfb6cee0c3352739207b5183.zip
FreeBSD-src-e3de5af6cff5580ccfb6cee0c3352739207b5183.tar.gz
Change the clist reservation from 0 to buffer size.
Submitted by: mmoeller@infolibria.com
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index 5c39160..ba3f7e2 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -309,7 +309,7 @@ ugenopen(dev, flag, mode, p)
sce->ibuf = malloc(isize, M_USBDEV, M_WAITOK);
DPRINTFN(5, ("ugenopen: intr endpt=%d,isize=%d\n",
endpt, isize));
- if (clalloc(&sce->q, UGEN_IBSIZE, 0) == -1)
+ if (clalloc(&sce->q, UGEN_IBSIZE, UGEN_IBSIZE) == -1)
return (ENOMEM);
err = usbd_open_pipe_intr(sce->iface,
edesc->bEndpointAddress,
OpenPOWER on IntegriCloud