Re: [PATCH]: netfilter: nf_conntrack: use is_vmalloc_addr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le vendredi 14 janvier 2011 Ã 14:42 +0100, Patrick McHardy a Ãcrit :
> I'll add this to my tree unless someone spots a bug.
> 
> netfilter: nf_conntrack: use is_vmalloc_addr()
> 
> Use is_vmalloc_addr() in nf_ct_free_hashtable() and get rid of
> the vmalloc flags to indicate that a hash table has been allocated
> using vmalloc().
> 

Seems fine to me, you could shrink this chunk to one line :

@@ -1271,7 +1271,7 @@ static void nf_conntrack_cleanup_net(struct net *net)
 		goto i_see_dead_people;
 	}
 
-	nf_ct_free_hashtable(net->ct.hash, net->ct.hash_vmalloc,
+	nf_ct_free_hashtable(net->ct.hash, 
 			     net->ct.htable_size);
 	nf_conntrack_ecache_fini(net);
 	nf_conntrack_acct_fini(net);
@@ -1301,21 +1301,18 @@ void nf_conntrack_cleanup(struct net *net)





--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux