Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb add a default case in xhci_init_slot().



details:   https://anonhg.NetBSD.org/src/rev/a32948c1d04d
branches:  trunk
changeset: 791249:a32948c1d04d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Nov 10 03:38:58 2013 +0000

description:
add a default case in xhci_init_slot().
ok jakllsch.

diffstat:

 sys/dev/usb/xhci.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 9863335c70e0 -r a32948c1d04d sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Sun Nov 10 03:20:20 2013 +0000
+++ b/sys/dev/usb/xhci.c        Sun Nov 10 03:38:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.7 2013/11/08 03:12:17 christos Exp $        */
+/*     $NetBSD: xhci.c,v 1.8 2013/11/10 03:38:58 mrg Exp $     */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.7 2013/11/08 03:12:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.8 2013/11/10 03:38:58 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1851,6 +1851,10 @@
                xspeed = 4;
                mps = USB_3_MAX_CTRL_PACKET;
                break;
+       default:
+               device_printf(sc->sc_dev, "%s: impossible speed: %x",
+                   __func__, speed);
+               return USBD_INVAL;
        }
 
        xs = &sc->sc_slots[slot];



Home | Main Index | Thread Index | Old Index