PERFORCE change 170037 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Nov 1 12:14:24 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=170037
Change 170037 by hselasky at 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);
}
More information about the p4-projects
mailing list