Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 12:14:23 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 170037 for review
Message-ID:  <200911011214.nA1CENLS042945@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=170037

Change 170037 by hselasky@hselasky_laptop001 on 2009/11/01 12:13:52

	
	USB CORE (new feature):
		- USB linux compat patch. Don't write actual length if
		the actual length pointer is NULL.
		- patch from: Manuel Gebele

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_compat_linux.c#52 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_compat_linux.c#52 (text+ko) ====

@@ -624,10 +624,11 @@
 done:
 	if (do_unlock)
 		mtx_unlock(&Giant);
-	if (err) {
-		*p_actlen = 0;
-	} else {
-		*p_actlen = urb->actual_length;
+	if (p_actlen != NULL) {
+		if (err)
+			*p_actlen = 0;
+		else
+			*p_actlen = urb->actual_length;
 	}
 	return (err);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911011214.nA1CENLS042945>