Module Name: src
Committed By: skrll
Date: Fri Mar 6 14:08:39 UTC 2015
Modified Files:
src/sys/dev/usb [nick-nhusb]: usbdi.c
Log Message:
Another USBD_NOMEM rather than ENOMEM where appropriate.
Pointed out by Takahiro HAYASHI. Thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.162.2.17 -r1.162.2.18 src/sys/dev/usb/usbdi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/usbdi.c
diff -u src/sys/dev/usb/usbdi.c:1.162.2.17 src/sys/dev/usb/usbdi.c:1.162.2.18
--- src/sys/dev/usb/usbdi.c:1.162.2.17 Fri Mar 6 12:54:29 2015
+++ src/sys/dev/usb/usbdi.c Fri Mar 6 14:08:39 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.162.2.17 2015/03/06 12:54:29 skrll Exp $ */
+/* $NetBSD: usbdi.c,v 1.162.2.18 2015/03/06 14:08:39 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.17 2015/03/06 12:54:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.18 2015/03/06 14:08:39 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1081,7 +1081,7 @@ usbd_do_request_flags_pipe(usbd_device_h
if (UGETW(req->wLength) != 0) {
void *buf = usbd_alloc_buffer(xfer, UGETW(req->wLength));
if (buf == NULL) {
- err = ENOMEM;
+ err = USBD_NOMEM;
goto bad;
}
}