libiconv was declaring a base kobj_class structure instead of an extended
commitd0554ccd2bc9844615b40912c316e3206a096ecc
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 3 Oct 2007 18:58:20 +0000 (3 18:58 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 3 Oct 2007 18:58:20 +0000 (3 18:58 +0000)
tree41f7364d6a0e110f4c6a7be5199ae4836a1a7292
parent95d9310538e5c641330236a44fc04dbfcff16a83
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