Re: [PATCH] netfilter: replace horrible hack with ksize()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka J Enberg <penberg@...>
Cc: <netfilter-devel@...>, <clameter@...>, <joe@...>, <linux-kernel@...>, <netdev@...>
Date: Thursday, March 6, 2008 - 10:03 am

Pekka J Enberg wrote:

This doesn't look right.



This needs to look at the currently allocated size, otherwise
it will always realloc when adding new extensions after having
used up ksize(ct->ext) space.


And this should use ksize(newlen) and store the real length
in real_len below.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] netfilter: replace horrible hack with ksize(), Pekka J Enberg, (Wed Mar 5, 5:20 pm)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Patrick McHardy, (Thu Mar 6, 10:03 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Pekka J Enberg, (Thu Mar 6, 10:14 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Christoph Lameter, (Thu Mar 6, 12:41 pm)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Pekka J Enberg, (Thu Mar 6, 10:20 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Patrick McHardy, (Thu Mar 6, 10:35 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Pekka J Enberg, (Thu Mar 6, 10:41 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Patrick McHardy, (Thu Mar 6, 10:51 am)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Patrick McHardy, (Mon Mar 10, 1:57 pm)
Re: [PATCH] netfilter: replace horrible hack with ksize(), Christoph Lameter, (Wed Mar 5, 5:56 pm)