Re: [PATCHv2 net-next 02/15] lib: nlattr: set extack msg if validate_nla fails

2017-12-14 Thread David Ahern
On 12/14/17 11:38 AM, Alexander Aring wrote: > This patch sets a generic netlink error message if the validation of the > netlink attribute failed. It avoids several different settings of > netlink messages by handle nla_parse_nested on error case. > > Suggested-by: David Ahern > Signed-off-by: A

[PATCHv2 net-next 02/15] lib: nlattr: set extack msg if validate_nla fails

2017-12-14 Thread Alexander Aring
This patch sets a generic netlink error message if the validation of the netlink attribute failed. It avoids several different settings of netlink messages by handle nla_parse_nested on error case. Suggested-by: David Ahern Signed-off-by: Alexander Aring --- lib/nlattr.c | 4 +++- 1 file change