From owner-p4-projects@FreeBSD.ORG Thu Nov 19 08:06:28 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 241B91065695; Thu, 19 Nov 2009 08:06:28 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCC47106568F for ; Thu, 19 Nov 2009 08:06:27 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C9CB98FC13 for ; Thu, 19 Nov 2009 08:06:27 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAJ86REJ051370 for ; Thu, 19 Nov 2009 08:06:27 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAJ86RJS051368 for perforce@freebsd.org; Thu, 19 Nov 2009 08:06:27 GMT (envelope-from hselasky@FreeBSD.org) Date: Thu, 19 Nov 2009 08:06:27 GMT Message-Id: <200911190806.nAJ86RJS051368@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 170795 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 08:06:28 -0000 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 */