Date: Thu, 19 Nov 2009 08:06:27 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 170795 for review Message-ID: <200911190806.nAJ86RJS051368@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=170795 Change 170795 by hselasky@hselasky_laptop001 on 2009/11/19 08:06:13 LibUSB v1.0: - fix a transfer cancelling bug/segfault - reported by: Robert Jenssen Affected files ... .. //depot/projects/usb/src/lib/libusb/libusb10.c#17 edit Differences ... ==== //depot/projects/usb/src/lib/libusb/libusb10.c#17 (text+ko) ==== @@ -1115,6 +1115,8 @@ return; case 2: sxfer = libusb20_tr_get_priv_sc1(pxfer1); + if (sxfer == NULL) + return; /* cancelling */ if (sxfer->rem_len) return; /* cannot queue another one */ /* swap transfers */ @@ -1122,6 +1124,8 @@ break; case 1: sxfer = libusb20_tr_get_priv_sc1(pxfer0); + if (sxfer == NULL) + return; /* cancelling */ if (sxfer->rem_len) return; /* cannot queue another one */ /* swap transfers */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911190806.nAJ86RJS051368>