diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-11-18 12:50:48 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-11-18 12:50:48 +0000 |
commit | e3de5af6cff5580ccfb6cee0c3352739207b5183 (patch) | |
tree | 9422a970899a41f5f93d4fefd147117384e4b8b9 /sys/dev/usb/ugen.c | |
parent | d90803b819d1d744a9165881b17a285629eac68c (diff) | |
download | FreeBSD-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.c | 2 |
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, |