Module Name: src
Committed By: skrll
Date: Mon Sep 5 20:58:51 UTC 2016
Modified Files:
src/sys/dev/usb: if_athn_usb.c
Log Message:
kern/51458 (usb athn panic)
initialise buf in usc_tx_cmd
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/usb/if_athn_usb.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/if_athn_usb.c
diff -u src/sys/dev/usb/if_athn_usb.c:1.12 src/sys/dev/usb/if_athn_usb.c:1.13
--- src/sys/dev/usb/if_athn_usb.c:1.12 Fri Jun 10 13:27:15 2016
+++ src/sys/dev/usb/if_athn_usb.c Mon Sep 5 20:58:51 2016
@@ -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 @@ athn_usb_alloc_tx_cmd(struct athn_usb_so
"could not allocate command xfer\n");
return err;
}
+ data->buf = usbd_get_buffer(data->xfer);
return 0;
}