Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nat46/modules/nat46-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ nat46_instance_t *get_nat46_instance(struct sk_buff *sk) {
spin_unlock_bh(&ref_lock);
return nat46;
} else {
printk("[nat46] get_nat46_instance: Could not find a valid NAT46 instance!");
spin_unlock_bh(&ref_lock);
printk("[nat46] get_nat46_instance: Could not find a valid NAT46 instance!");
return NULL;
}
}
Expand All @@ -66,9 +66,11 @@ void release_nat46_instance(nat46_instance_t *nat46) {
spin_lock_bh(&ref_lock);
nat46->refcount--;
if(0 == nat46->refcount) {
printk("[nat46] release_nat46_instance: freeing nat46 instance with %d pairs\n", nat46->npairs);
nat46->sig = FREED_NAT46_SIGNATURE;
spin_unlock_bh(&ref_lock);
printk("[nat46] release_nat46_instance: freeing nat46 instance with %d pairs\n", nat46->npairs);
kfree(nat46);
return;
}
spin_unlock_bh(&ref_lock);
}