Re: [PATCH] NET: catch signed nla_len() retval in tcf_simp_init()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Patrick McHardy <kaber@...>
Cc: David Miller <davem@...>, <12o3l@...>, <netdev@...>, <linux-kernel@...>
Date: Thursday, April 17, 2008 - 8:58 am

On Thu, 2008-17-04 at 06:55 +0200, Patrick McHardy wrote:


Since act_simple is an academic example:
I think that a better solution is to add TCA_DEF_DATA (which is a
string) to the nla_policy. nla_policy is defined but at the moment it is
not used in the call to nla_parse_nested() - might as well use it.

Roel, would you like to take a crack at that? You will need to define
the max size of the string that TCA_DEF_DATA can hold (if you want to do
it cleanly then define it in include/linux/tc_act/tc_defact.h). This MAX
size will appear in the nla_policy.

cheers,
jamal

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

Messages in current thread:
Re: [PATCH] NET: catch signed nla_len() retval in tcf_simp_i..., jamal, (Thu Apr 17, 8:58 am)