libiconv was declaring a base kobj_class structure instead of an extended
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 3 Oct 2007 18:58:20 +0000 (18:58 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 3 Oct 2007 18:58:20 +0000 (18:58 +0000)
commitbef85e27e61aad066c31be44a092b82e024958ee
tree3fc53d50d4034c7bc10c664840b077ed644b3bb3
parent2ccb7e543ae8db050d321ac1f65a28d5d02eee58
libiconv was declaring a base kobj_class structure instead of an extended
kobj_class structure (which it calls iconv_converter_class).  Add a new
KOBJ macro to allow an extended structure to be declared and explicitly
require the full name of the extended structure to be specified by the
caller.

This bug was causing sysctl -a to crash the system when libiconv.ko is
loaded.

Reported-by: Rumko <rumcic@gmail.com>, Joerg Anslik <joerg@anslik.de>
sys/sys/iconv.h
sys/sys/kobj.h