node = pnpbios_kmalloc(node_info.max_node_size, GFP_KERNEL);
node = kcalloc(1, node_info.max_node_size, GFP_KERNEL);
static int pnpbios_set_resources(struct pnp_dev * dev, struct pnp_resource_table * res){	u8 nodenum = dev->number;	struct pnp_bios_node * node;	int ret;	/* just in case */	if (!pnpbios_is_dynamic(dev))		return -EPERM;	node = pnpbios_kmalloc(node_info.max_node_size, GFP_KERNEL);	if (!node)		return -1;	if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_DYNAMIC, node)) {		kfree(node);		return -ENODEV;	}	if(pnpbios_write_resources_to_node(res, node)<0) {		kfree(node);		return -1;	}	ret = pnp_bios_set_dev_node(node->handle, (char)PNPMODE_DYNAMIC, node);	kfree(node);	if (ret > 0)		ret = -1;	return ret;}