Module Name:    src
Committed By:   nat
Date:           Fri Jul 10 22:03:12 UTC 2015

Modified Files:
        src/sys/dev/bluetooth: btsco.c

Log Message:
Wrap up calls to softint_schedule in kpeempt_[dis/en]able.

Addresses PR kern/48459.

This commit was approved by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/bluetooth/btsco.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/btsco.c
diff -u src/sys/dev/bluetooth/btsco.c:1.33 src/sys/dev/bluetooth/btsco.c:1.34
--- src/sys/dev/bluetooth/btsco.c:1.33	Tue Aug  5 07:55:31 2014
+++ src/sys/dev/bluetooth/btsco.c	Fri Jul 10 22:03:12 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: btsco.c,v 1.33 2014/08/05 07:55:31 rtr Exp $	*/
+/*	$NetBSD: btsco.c,v 1.34 2015/07/10 22:03:12 nat Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.33 2014/08/05 07:55:31 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.34 2015/07/10 22:03:12 nat Exp $");
 
 #include <sys/param.h>
 #include <sys/audioio.h>
@@ -798,7 +798,9 @@ btsco_start_output(void *hdl, void *bloc
 	sc->sc_tx_intr = intr;
 	sc->sc_tx_intrarg = intrarg;
 
+	kpreempt_disable();
 	softint_schedule(sc->sc_intr);
+	kpreempt_enable();
 	return 0;
 }
 

Reply via email to