Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/dev/spi Pull up following revision(s) (requested by s...



details:   https://anonhg.NetBSD.org/src/rev/1fc7e19724b6
branches:  netbsd-6
changeset: 775671:1fc7e19724b6
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Feb 11 04:19:44 2013 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #809):
        sys/dev/spi/spi.c: revision 1.7
Don't leak condvars and mutexes, even if they are on the stack.
Fixes LOCKDEBUG asserts when a mutex/condvar is initialized at the same
stack address as a previous initialization.  We probably want to revisit
the transfer structure lifecyle at some point in the future.

diffstat:

 sys/dev/spi/spi.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 9e294838838a -r 1fc7e19724b6 sys/dev/spi/spi.c
--- a/sys/dev/spi/spi.c Sun Feb 10 23:59:29 2013 +0000
+++ b/sys/dev/spi/spi.c Mon Feb 11 04:19:44 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spi.c,v 1.6 2011/07/08 03:29:15 mrg Exp $ */
+/* $NetBSD: spi.c,v 1.6.8.1 2013/02/11 04:19:44 riz Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.6 2011/07/08 03:29:15 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.6.8.1 2013/02/11 04:19:44 riz Exp $");
 
 #include "locators.h"
 
@@ -276,6 +276,8 @@
                cv_wait(&st->st_cv, &st->st_lock);
        }
        mutex_exit(&st->st_lock);
+       cv_destroy(&st->st_cv);
+       mutex_destroy(&st->st_lock);
 }
 
 void



Home | Main Index | Thread Index | Old Index