/* If registry has been pre-initialized it is left "as is". NOTE: This routine may be called when TIPC is inactive.  */
static int reg_init(void)
/* If registry has been pre-initialized it is left "as is". NOTE: This routine may be called when TIPC is inactive.  */
static int reg_init(void)
{
	u32 i;
	spin_lock_bh(&reg_lock);
	if (!users) {
		users = kzalloc(USER_LIST_SIZE, GFP_ATOMIC);
		if (users) {
			for (i = 1; i <= MAX_USERID; i++) {
				users[i].next = i - 1;
			}
			next_free_user = MAX_USERID;
		}
	}
	spin_unlock_bh(&reg_lock);
	return users ? 0 : -ENOMEM;
}