/* free_rs - Free the rs control structure, if it is no longer used @rs: the control structure which is not longer used by the caller  */
void free_rs(struct rs_control *rs)
/* free_rs - Free the rs control structure, if it is no longer used @rs: the control structure which is not longer used by the caller  */
void free_rs(struct rs_control *rs)
{
	mutex_lock(&rslistlock);
	rs->users--;
	if(!rs->users) {
		list_del(&rs->list);
		kfree(rs->alpha_to);
		kfree(rs->index_of);
		kfree(rs->genpoly);
		kfree(rs);
	}
	mutex_unlock(&rslistlock);
}