Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb kern/51458 (usb athn panic)



details:   https://anonhg.NetBSD.org/src/rev/bf115959db7d
branches:  trunk
changeset: 347616:bf115959db7d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Sep 05 20:58:51 2016 +0000

description:
kern/51458 (usb athn panic)

initialise buf in usc_tx_cmd

diffstat:

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

diffs (26 lines):

diff -r 50980e3e1f2d -r bf115959db7d sys/dev/usb/if_athn_usb.c
--- a/sys/dev/usb/if_athn_usb.c Mon Sep 05 20:41:59 2016 +0000
+++ b/sys/dev/usb/if_athn_usb.c Mon Sep 05 20:58:51 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_athn_usb.c,v 1.12 2016/06/10 13:27:15 ozaki-r Exp $ */
+/*     $NetBSD: if_athn_usb.c,v 1.13 2016/09/05 20:58:51 skrll Exp $   */
 /*     $OpenBSD: if_athn_usb.c,v 1.12 2013/01/14 09:50:31 jsing Exp $  */
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.12 2016/06/10 13:27:15 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.13 2016/09/05 20:58:51 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -716,6 +716,7 @@
                    "could not allocate command xfer\n");
                return err;
        }
+       data->buf = usbd_get_buffer(data->xfer);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index