Re: [PATCH net 0/3] netlink: fix wrong use of the flag NLM_F_MULTI

David Miller
2015-04-29T19:00:18Z

From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Tue, 28 Apr 2015 18:33:47 +0200

> The first three patches fix a wrong use of this flag.
>
> Because it's not the first time that this kind of bug happens, it could be
> good to find something to help people.
>
> The only idea that I have is in the last patch. It's just an example, if
> people agrees on it, I will update all users and submit it formally.
> Any better idea is welcomed.

I've applied this series.

The only thing with patch #4 is that we have to make sure everyone
initializes all fields. It would be nice if there were a way to
sort-of enforce that.

Even just having a static inline initializer helper func might be
enough, like I added for nf_hook_info.