Date: Wed, 26 Sep 2007 16:58:19 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 126828 for review Message-ID: <200709261658.l8QGwJYs046624@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126828 Change 126828 by hselasky@hselasky_laptop001 on 2007/09/26 16:58:04 Set some more default values in case of error. Mainly for the UHCI HC driver, but useful in general. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#30 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#30 (text+ko) ==== @@ -625,6 +625,8 @@ done: if (parm->err) { xfer->max_usb_frame_size = 1; /* XXX avoid division by zero */ + xfer->max_frame_size = 1; /* XXX avoid division by zero */ + xfer->max_packet_size = 1; /* XXX avoid division by zero */ xfer->max_data_length = 0; xfer->nframes = 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709261658.l8QGwJYs046624>