/* This function is used to free the partner info list that was returned by calling hvcs_get_partner_info().  */
int hvcs_free_partner_info(struct list_head *head)
/* This function is used to free the partner info list that was returned by calling hvcs_get_partner_info().  */
int hvcs_free_partner_info(struct list_head *head)
{
	struct hvcs_partner_info *pi;
	struct list_head *element;
	if (!head)
		return -EINVAL;
	while (!list_empty(head)) {
		element = head->next;
		pi = list_entry(element, struct hvcs_partner_info, node);
		list_del(element);
		kfree(pi);
	}
	return 0;
}