Skip to content

Commit

Permalink
Solved bug on module remotion
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusNtg committed Oct 14, 2020
1 parent 6388358 commit 9277e14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lunatik_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,16 @@ static void __net_exit lunatik_instanceclose(struct net *net)
{
struct lunatik_instance *instance;
lunatik_State *s;
struct hlist_node *tmp;
int bkt;

instance = lunatik_pernet(net);

spin_lock_bh(&(instance->statestable_lock));

hash_for_each_safe(instance->states_table, bkt, tmp, s, node) {
hash_for_each(instance->states_table, bkt, s, node) {
state_destroy(s);
if (hash_empty(instance->states_table))
break;
}

spin_unlock_bh(&(instance->statestable_lock));
Expand Down

0 comments on commit 9277e14

Please sign in to comment.