Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Make sure ub_data has the transfer buffer



details:   https://anonhg.NetBSD.org/src/rev/e79963efa99e
branches:  nick-nhusb
changeset: 804671:e79963efa99e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Jun 28 11:47:53 2016 +0000

description:
Make sure ub_data has the transfer buffer

diffstat:

 sys/dev/usb/ucom.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c2653eab872f -r e79963efa99e sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Thu Jun 16 05:33:24 2016 +0000
+++ b/sys/dev/usb/ucom.c        Tue Jun 28 11:47:53 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.108.2.15 2016/05/30 06:54:17 skrll Exp $    */
+/*     $NetBSD: ucom.c,v 1.108.2.16 2016/06/28 11:47:53 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.108.2.15 2016/05/30 06:54:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.108.2.16 2016/06/28 11:47:53 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1492,6 +1492,7 @@
                return;
        }
 
+       ub->ub_data = usbd_get_buffer(xfer);
        if (sc->sc_methods->ucom_read != NULL) {
                sc->sc_methods->ucom_read(sc->sc_parent, sc->sc_portno,
                    &cp, &cc);



Home | Main Index | Thread Index | Old Index