rem: if ((m = (module*)kmalloc(sizeof(module))) == NULL) {
add: if ((m = (module*)kmalloc(sizeof(module))) == NULL)
context: static int simple_module_info(module_info *mod, const char *file, int offset){	module *m;		m = (module*)hash_lookup(modules_list, mod->name);	if (m) {		dprintf("Duplicate module name (%s) detected...ignoring\n", mod->name);		return -1;	}			if ((m = (module*)kmalloc(sizeof(module))) == NULL) {		return -1;	}	if (!mod->name) {		return -1;	}		SHOW_FLOW(3, "simple_module_info(%s, %s)\n", mod->name, file);		m->module = NULL; /* back pointer */	m->name = (char*)kmalloc(strlen(mod->name) + 1);	if (!m->name) {		kfree(m);		return -1;	}	strcpy(m->name, mod->name);		m->state = MOD_QUERIED;	/* Record where the module_info can be found */	m->offset = offset;	m->file = (char*)kstrdup(file);	/* set the keep_loaded flag */	if (mod->flags & B_KEEP_LOADED) {		dprintf("module %s wants to be kept loaded\n", m->name);		m->keep_loaded = true;	}	recursive_lock_lock(&modules_lock);	/* Insert into linked list */	/* NB NB NB The call to insque MUST be done before insertion into	 * the hash list 	 */	insque(m, &known_modules);	hash_insert(modules_list, m);	recursive_lock_unlock(&modules_lock);	return 0;}