Date: Mon, 5 Sep 2005 17:03:40 +0000 (UTC) From: "R. Imura" <imura@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys iconv.h Message-ID: <200509051703.j85H3elm099985@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509051703.j85H3elm099985>
