Date: Thu, 12 Feb 2009 20:03:17 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 157608 for review Message-ID: <200902122003.n1CK3H3q004647@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=157608 Change 157608 by hselasky@hselasky_laptop001 on 2009/02/12 20:02:21 USB CORE: Make usb2_transfer_pending() NULL safe. Affected files ... .. //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#43 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#43 (text+ko) ==== @@ -1690,6 +1690,10 @@ struct usb2_xfer_root *info; struct usb2_xfer_queue *pq; + if (xfer == NULL) { + /* transfer is gone */ + return (0); + } USB_XFER_LOCK_ASSERT(xfer, MA_OWNED); if (xfer->flags_int.transferring) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902122003.n1CK3H3q004647>