Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2012 02:41:15 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235712 - head/sys/libkern
Message-ID:  <201205210241.q4L2fFIH032339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Mon May 21 02:41:15 2012
New Revision: 235712
URL: http://svn.freebsd.org/changeset/base/235712

Log:
  Fix broken ref count
  
  Submitted by:	gcooper

Modified:
  head/sys/libkern/iconv.c

Modified: head/sys/libkern/iconv.c
==============================================================================
--- head/sys/libkern/iconv.c	Mon May 21 02:30:22 2012	(r235711)
+++ head/sys/libkern/iconv.c	Mon May 21 02:41:15 2012	(r235712)
@@ -133,6 +133,7 @@ iconv_register_converter(struct iconv_co
 static int
 iconv_unregister_converter(struct iconv_converter_class *dcp)
 {
+	dcp->refs--;
 	if (dcp->refs > 1) {
 		ICDEBUG("converter have %d referenses left\n", dcp->refs);
 		return EBUSY;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205210241.q4L2fFIH032339>