From owner-cvs-src@FreeBSD.ORG Mon Sep 5 17:03:41 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5541316A41F; Mon, 5 Sep 2005 17:03:41 +0000 (GMT) (envelope-from imura@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2339743D49; Mon, 5 Sep 2005 17:03:41 +0000 (GMT) (envelope-from imura@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j85H3f8A099986; Mon, 5 Sep 2005 17:03:41 GMT (envelope-from imura@repoman.freebsd.org) Received: (from imura@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j85H3elm099985; Mon, 5 Sep 2005 17:03:40 GMT (envelope-from imura) Message-Id: <200509051703.j85H3elm099985@repoman.freebsd.org> From: "R. Imura" Date: Mon, 5 Sep 2005 17:03:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys iconv.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 17:03:41 -0000 imura 2005-09-05 17:03:40 UTC FreeBSD src repository Modified files: sys/sys iconv.h Log: Fix panic when loading libiconv.ko on sparc64. It seems that this issue only become obvious when compiled with -O2 on sparc64. Since each struct iconv_converter_class has been initialized by DEFINE_CLASS macro, not all members of struct iconv_converter_class has been allocated on memory and cc_link member has not been initialized, while iconv_register_converter() wanted to access it with TAILQ. Now we modify KICONV_CONVERTER macro and fix this bug. Problem reported on: freebsd-sparc64 Pointed out by: yongari Discussed with: yongari Tested by: yongari MFC after: 3 days Revision Changes Path 1.12 +4 -2 src/sys/sys/iconv.h