Re: [PATCH net] team: avoid adding twice the same option to the event list

2018-04-16 Thread David Miller
From: Paolo Abeni Date: Fri, 13 Apr 2018 13:59:25 +0200 > When parsing the options provided by the user space, > team_nl_cmd_options_set() insert them in a temporary list to send > multiple events with a single message. > While each option's attribute is correctly validated, the code does > not c

Re: [PATCH net] team: avoid adding twice the same option to the event list

2018-04-15 Thread Paolo Abeni
On Fri, 2018-04-13 at 14:07 -0400, David Miller wrote: > From: Paolo Abeni > Date: Fri, 13 Apr 2018 13:59:25 +0200 > > > When parsing the options provided by the user space, > > team_nl_cmd_options_set() insert them in a temporary list to send > > multiple events with a single message. > > While

Re: [PATCH net] team: avoid adding twice the same option to the event list

2018-04-13 Thread David Miller
From: Paolo Abeni Date: Fri, 13 Apr 2018 13:59:25 +0200 > When parsing the options provided by the user space, > team_nl_cmd_options_set() insert them in a temporary list to send > multiple events with a single message. > While each option's attribute is correctly validated, the code does > not c

[PATCH net] team: avoid adding twice the same option to the event list

2018-04-13 Thread Paolo Abeni
When parsing the options provided by the user space, team_nl_cmd_options_set() insert them in a temporary list to send multiple events with a single message. While each option's attribute is correctly validated, the code does not check for duplicate entries before inserting into the event list. Ex