#ifdef CONFIG_MODULE_UNLOAD err = module_add_modinfo_attrs(mod); if (err) goto out_unreg; #endif  
static int mod_sysfs_setup(struct module *mod,			   struct kernel_param *kparam,			   unsigned int num_params){	int err;	memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj));	err = kobject_set_name(&mod->mkobj.kobj, "%s", mod->name);	if (err)		goto out;	kobj_set_kset_s(&mod->mkobj, module_subsys);	mod->mkobj.mod = mod;	err = kobject_register(&mod->mkobj.kobj);	if (err)		goto out;	err = module_add_refcnt_attr(mod);	if (err)		goto out_unreg;	err = module_param_sysfs_setup(mod, kparam, num_params);	if (err)		goto out_unreg;	return 0;out_unreg:	kobject_unregister(&mod->mkobj.kobj);out:	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c988d2b2845495373f666a381d354a7f80981d62/module.c/buggy/kernel/module.c