Module Name: src
Committed By: nat
Date: Fri Aug 11 00:58:37 UTC 2017
Modified Files:
src/sys/dev/bluetooth: bth5.c
Log Message:
Ensure the XMIT flag is cleared before calling bth5_start.
This avoids a panic due to a diagnostic assertion.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/bluetooth/bth5.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/bluetooth/bth5.c
diff -u src/sys/dev/bluetooth/bth5.c:1.1 src/sys/dev/bluetooth/bth5.c:1.2
--- src/sys/dev/bluetooth/bth5.c:1.1 Thu Aug 10 13:22:19 2017
+++ src/sys/dev/bluetooth/bth5.c Fri Aug 11 00:58:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: bth5.c,v 1.1 2017/08/10 13:22:19 nat Exp $ */
+/* $NetBSD: bth5.c,v 1.2 2017/08/11 00:58:37 nat Exp $ */
/*
* Copyright (c) 2017 Nathanial Sloss <[email protected]>
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bth5.c,v 1.1 2017/08/10 13:22:19 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bth5.c,v 1.2 2017/08/11 00:58:37 nat Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -963,6 +963,7 @@ bth5_mux_transmit(struct bth5_softc *sc)
hdrp->flags |= BTH5_FLAGS_PROTOCOL_REL; /* Reliable */
goto transmit;
}
+ sc->sc_flags &= ~BTH5_XMIT;
bth5_start(sc);
if (sc->sc_mux_send_ack == true) {
m = bth5_create_ackpkt();