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

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

 



Am 14.01.2011 15:33, schrieb Eric Dumazet:
> 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);

Thanks, I've fixed this and committed the patch to my tree.

--
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