Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/bluetooth Ensure the XMIT flag is cleared before cal...



details:   https://anonhg.NetBSD.org/src/rev/9f928a055794
branches:  trunk
changeset: 355714:9f928a055794
user:      nat <nat%NetBSD.org@localhost>
date:      Fri Aug 11 00:58:37 2017 +0000

description:
Ensure the XMIT flag is cleared before calling bth5_start.

This avoids a panic due to a diagnostic assertion.

diffstat:

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

diffs (26 lines):

diff -r 4c0a512b63af -r 9f928a055794 sys/dev/bluetooth/bth5.c
--- a/sys/dev/bluetooth/bth5.c  Fri Aug 11 00:00:25 2017 +0000
+++ b/sys/dev/bluetooth/bth5.c  Fri Aug 11 00:58:37 2017 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
  * 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 @@
                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();



Home | Main Index | Thread Index | Old Index